Update docs

This commit is contained in:
Daniil Gentili 2019-06-23 13:08:44 +02:00
parent 5fa5a14139
commit 8bfeb13176
7 changed files with 483 additions and 8 deletions

View File

@ -134,6 +134,7 @@ Tip: if you receive an error (or nothing), [send us](https://t.me/pwrtelegramgro
* [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)
* [Downloading profile pictures](https://docs.madelineproto.xyz/docs/FILES.html#downloading-profile-pictures)
* [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)
@ -172,6 +173,7 @@ Tip: if you receive an error (or nothing), [send us](https://t.me/pwrtelegramgro
* [Upload or download files up to 1.5 GB](https://docs.madelineproto.xyz/docs/FILES.html)
* [Make a phone call and play a song](https://docs.madelineproto.xyz/docs/CALLS.html)
* [Create a secret chat bot](https://docs.madelineproto.xyz/docs/SECRET_CHATS.html)
* <a href="https://docs.madelineproto.xyz/API_docs/methods/messages_acceptUrlAuth.html" name="messages_acceptUrlAuth">Accept URL authorization: messages.acceptUrlAuth</a>
* <a href="https://docs.madelineproto.xyz/API_docs/methods/account_acceptAuthorization.html" name="account_acceptAuthorization">Accept telegram passport authorization: account.acceptAuthorization</a>
* <a href="https://docs.madelineproto.xyz/API_docs/methods/help_acceptTermsOfService.html" name="help_acceptTermsOfService">Accept telegram's TOS: help.acceptTermsOfService</a>
* <a href="https://docs.madelineproto.xyz/API_docs/methods/messages_installStickerSet.html" name="messages_installStickerSet">Add a sticker set: messages.installStickerSet</a>
@ -221,6 +223,7 @@ Tip: if you receive an error (or nothing), [send us](https://t.me/pwrtelegramgro
* <a href="https://docs.madelineproto.xyz/API_docs/methods/channels_deleteMessages.html" name="channels_deleteMessages">Delete channel/supergroup messages: channels.deleteMessages</a>
* <a href="https://docs.madelineproto.xyz/API_docs/methods/messages_deleteHistory.html" name="messages_deleteHistory">Delete chat history: messages.deleteHistory</a>
* <a href="https://docs.madelineproto.xyz/API_docs/methods/contacts_deleteByPhones.html" name="contacts_deleteByPhones">Delete contacts by phones: contacts.deleteByPhones</a>
* <a href="https://docs.madelineproto.xyz/API_docs/methods/folders_deleteFolder.html" name="folders_deleteFolder">Delete folder: folders.deleteFolder</a>
* <a href="https://docs.madelineproto.xyz/API_docs/methods/messages_deleteMessages.html" name="messages_deleteMessages">Delete messages: messages.deleteMessages</a>
* <a href="https://docs.madelineproto.xyz/API_docs/methods/contacts_deleteContacts.html" name="contacts_deleteContacts">Delete multiple contacts: contacts.deleteContacts</a>
* <a href="https://docs.madelineproto.xyz/API_docs/methods/photos_deletePhotos.html" name="photos_deletePhotos">Delete profile photos: photos.deletePhotos</a>
@ -235,6 +238,7 @@ Tip: if you receive an error (or nothing), [send us](https://t.me/pwrtelegramgro
* <a href="https://docs.madelineproto.xyz/API_docs/methods/messages_editChatAdmin.html" name="messages_editChatAdmin">Edit admin permissions: messages.editChatAdmin</a>
* <a href="https://docs.madelineproto.xyz/API_docs/methods/messages_editChatAbout.html" name="messages_editChatAbout">Edit chat info: messages.editChatAbout</a>
* <a href="https://docs.madelineproto.xyz/API_docs/methods/messages_editChatDefaultBannedRights.html" name="messages_editChatDefaultBannedRights">Edit default rights of chat: messages.editChatDefaultBannedRights</a>
* <a href="https://docs.madelineproto.xyz/API_docs/methods/folders_editPeerFolders.html" name="folders_editPeerFolders">Edit folder: folders.editPeerFolders</a>
* <a href="https://docs.madelineproto.xyz/API_docs/methods/messages_editChatPhoto.html" name="messages_editChatPhoto">Edit the photo of a normal chat (not supergroup): messages.editChatPhoto</a>
* <a href="https://docs.madelineproto.xyz/API_docs/methods/channels_editPhoto.html" name="channels_editPhoto">Edit the photo of a supergroup/channel: channels.editPhoto</a>
* <a href="https://docs.madelineproto.xyz/API_docs/methods/messages_editChatTitle.html" name="messages_editChatTitle">Edit the title of a normal chat (not supergroup): messages.editChatTitle</a>
@ -266,6 +270,7 @@ Tip: if you receive an error (or nothing), [send us](https://t.me/pwrtelegramgro
* <a href="https://docs.madelineproto.xyz/API_docs/methods/phone_getCallConfig.html" name="phone_getCallConfig">Get call configuration: phone.getCallConfig</a>
* <a href="https://docs.madelineproto.xyz/API_docs/methods/channels_getMessages.html" name="channels_getMessages">Get channel/supergroup messages: channels.getMessages</a>
* <a href="https://docs.madelineproto.xyz/API_docs/methods/channels_getParticipants.html" name="channels_getParticipants">Get channel/supergroup participants (you should use `$MadelineProto->get_pwr_chat($id)` instead): channels.getParticipants</a>
* <a href="https://docs.madelineproto.xyz/API_docs/methods/channels_getBroadcastsForDiscussion.html" name="channels_getBroadcastsForDiscussion">Get channels for discussion: channels.getBroadcastsForDiscussion</a>
* <a href="https://docs.madelineproto.xyz/API_docs/methods/messages_getCommonChats.html" name="messages_getCommonChats">Get chats in common with a user: messages.getCommonChats</a>
* <a href="https://docs.madelineproto.xyz/API_docs/methods/contacts_getContactIDs.html" name="contacts_getContactIDs">Get contacts by IDs: contacts.getContactIDs</a>
* <a href="https://docs.madelineproto.xyz/API_docs/methods/help_getDeepLinkInfo.html" name="help_getDeepLinkInfo">Get deep link info: help.getDeepLinkInfo</a>
@ -274,9 +279,11 @@ Tip: if you receive an error (or nothing), [send us](https://t.me/pwrtelegramgro
* <a href="https://docs.madelineproto.xyz/API_docs/methods/messages_getDocumentByHash.html" name="messages_getDocumentByHash">Get document by SHA256 hash: messages.getDocumentByHash</a>
* <a href="https://docs.madelineproto.xyz/API_docs/methods/messages_getEmojiURL.html" name="messages_getEmojiURL">Get emoji URL: messages.getEmojiURL</a>
* <a href="https://docs.madelineproto.xyz/API_docs/methods/messages_getEmojiKeywordsDifference.html" name="messages_getEmojiKeywordsDifference">Get emoji keyword difference: messages.getEmojiKeywordsDifference</a>
* <a href="https://docs.madelineproto.xyz/API_docs/methods/messages_getEmojiKeywordsLanguages.html" name="messages_getEmojiKeywordsLanguages">Get emoji keyword languages: messages.getEmojiKeywordsLanguages</a>
* <a href="https://docs.madelineproto.xyz/API_docs/methods/messages_getEmojiKeywords.html" name="messages_getEmojiKeywords">Get emoji keywords: messages.getEmojiKeywords</a>
* <a href="https://docs.madelineproto.xyz/API_docs/methods/messages_getFavedStickers.html" name="messages_getFavedStickers">Get favorite stickers: messages.getFavedStickers</a>
* <a href="https://docs.madelineproto.xyz/API_docs/methods/messages_getFeaturedStickers.html" name="messages_getFeaturedStickers">Get featured stickers: messages.getFeaturedStickers</a>
* <a href="https://docs.madelineproto.xyz/API_docs/methods/channels_getGroupsForDiscussion.html" name="channels_getGroupsForDiscussion">Get groups for discussion: channels.getGroupsForDiscussion</a>
* <a href="https://docs.madelineproto.xyz/API_docs/methods/messages_getInlineGameHighScores.html" name="messages_getInlineGameHighScores">Get high scores of a game sent in an inline message: messages.getInlineGameHighScores</a>
* <a href="https://docs.madelineproto.xyz/API_docs/methods/messages_getGameHighScores.html" name="messages_getGameHighScores">Get high scores of a game: messages.getGameHighScores</a>
* <a href="https://docs.madelineproto.xyz/API_docs/methods/channels_getParticipant.html" name="channels_getParticipant">Get info about a certain channel/supergroup participant: channels.getParticipant</a>
@ -313,6 +320,7 @@ Tip: if you receive an error (or nothing), [send us](https://t.me/pwrtelegramgro
* <a href="https://docs.madelineproto.xyz/API_docs/methods/contacts_getSaved.html" name="contacts_getSaved">Get saved contacts: contacts.getSaved</a>
* <a href="https://docs.madelineproto.xyz/API_docs/methods/messages_getSavedGifs.html" name="messages_getSavedGifs">Get saved gifs: messages.getSavedGifs</a>
* <a href="https://docs.madelineproto.xyz/API_docs/methods/payments_getSavedInfo.html" name="payments_getSavedInfo">Get saved payments info: payments.getSavedInfo</a>
* <a href="https://docs.madelineproto.xyz/API_docs/methods/messages_getSearchCounters.html" name="messages_getSearchCounters">Get search counter: messages.getSearchCounters</a>
* <a href="https://docs.madelineproto.xyz/API_docs/methods/account_getSecureValue.html" name="account_getSecureValue">Get secure value for telegram passport: account.getSecureValue</a>
* <a href="https://docs.madelineproto.xyz/API_docs/methods/help_getConfig.html" name="help_getConfig">Get server configuration: help.getConfig</a>
* <a href="https://docs.madelineproto.xyz/API_docs/methods/messages_getStatsURL.html" name="messages_getStatsURL">Get stats URL: messages.getStatsURL</a>
@ -370,6 +378,7 @@ Tip: if you receive an error (or nothing), [send us](https://t.me/pwrtelegramgro
* <a href="https://docs.madelineproto.xyz/API_docs/methods/messages_reportSpam.html" name="messages_reportSpam">Report a peer for spam: messages.reportSpam</a>
* <a href="https://docs.madelineproto.xyz/API_docs/methods/messages_reportEncryptedSpam.html" name="messages_reportEncryptedSpam">Report for spam a secret chat: messages.reportEncryptedSpam</a>
* <a href="https://docs.madelineproto.xyz/API_docs/methods/account_reportPeer.html" name="account_reportPeer">Report for spam: account.reportPeer</a>
* <a href="https://docs.madelineproto.xyz/API_docs/methods/messages_requestUrlAuth.html" name="messages_requestUrlAuth">Request URL authorization: messages.requestUrlAuth</a>
* <a href="https://docs.madelineproto.xyz/API_docs/methods/account_resendPasswordEmail.html" name="account_resendPasswordEmail">Resend password recovery email: account.resendPasswordEmail</a>
* <a href="https://docs.madelineproto.xyz/API_docs/methods/auth_resendCode.html" name="auth_resendCode">Resend the SMS verification code: auth.resendCode</a>
* <a href="https://docs.madelineproto.xyz/API_docs/methods/account_resetNotifySettings.html" name="account_resetNotifySettings">Reset all notification settings: account.resetNotifySettings</a>
@ -406,6 +415,7 @@ Tip: if you receive an error (or nothing), [send us](https://t.me/pwrtelegramgro
* <a href="https://docs.madelineproto.xyz/API_docs/methods/bots_answerWebhookJSONQuery.html" name="bots_answerWebhookJSONQuery">Send webhook request via bot API: bots.answerWebhookJSONQuery</a>
* <a href="https://docs.madelineproto.xyz/API_docs/methods/account_setAccountTTL.html" name="account_setAccountTTL">Set account TTL: account.setAccountTTL</a>
* <a href="https://docs.madelineproto.xyz/API_docs/methods/account_setContactSignUpNotification.html" name="account_setContactSignUpNotification">Set contact sign up notification: account.setContactSignUpNotification</a>
* <a href="https://docs.madelineproto.xyz/API_docs/methods/channels_setDiscussionGroup.html" name="channels_setDiscussionGroup">Set discussion group of channel: channels.setDiscussionGroup</a>
* <a href="https://docs.madelineproto.xyz/API_docs/methods/phone_setCallRating.html" name="phone_setCallRating">Set phone call rating: phone.setCallRating</a>
* <a href="https://docs.madelineproto.xyz/API_docs/methods/account_setPrivacy.html" name="account_setPrivacy">Set privacy settings: account.setPrivacy</a>
* <a href="https://docs.madelineproto.xyz/API_docs/methods/users_setSecureValueErrors.html" name="users_setSecureValueErrors">Set secure value error for telegram passport: users.setSecureValueErrors</a>

View File

@ -43,9 +43,9 @@ $docs = [
'readme' => false,
],
[
'tl_schema' => ['telegram' => __DIR__.'/src/danog/MadelineProto/TL_telegram_v97.tl', 'calls' => __DIR__.'/src/danog/MadelineProto/TL_calls.tl', 'secret' => __DIR__.'/src/danog/MadelineProto/TL_secret.tl', 'td' => __DIR__.'/src/danog/MadelineProto/TL_td.tl'],
'title' => 'MadelineProto API documentation (layer 97)',
'description' => 'MadelineProto API documentation (layer 97)',
'tl_schema' => ['telegram' => __DIR__.'/src/danog/MadelineProto/TL_telegram_v100.tl', 'calls' => __DIR__.'/src/danog/MadelineProto/TL_calls.tl', 'secret' => __DIR__.'/src/danog/MadelineProto/TL_secret.tl', 'td' => __DIR__.'/src/danog/MadelineProto/TL_td.tl'],
'title' => 'MadelineProto API documentation (layer 100)',
'description' => 'MadelineProto API documentation (layer 100)',
'output_dir' => __DIR__.'/docs/docs/API_docs',
'readme' => false,
],

2
docs

@ -1 +1 @@
Subproject commit 3b2fb46659932f3a812279b64f31b8933474978c
Subproject commit 7a17668c568e4a17e6b08f02347bd3f139d8554f

View File

@ -23,6 +23,12 @@ use danog\MadelineProto\Async\AsyncConstruct;
class APIFactory extends AsyncConstruct
{
/**
* @internal this is a internal property generated by build_docs.php, don't change manually
*
* @var folders
*/
public $folders;
/**
* @internal this is a internal property generated by build_docs.php, don't change manually
*

View File

@ -788,6 +788,8 @@ interface contacts
* boolean bots_pm,
* boolean bots_inline,
* boolean phone_calls,
* boolean forward_users,
* boolean forward_chats,
* boolean groups,
* boolean channels,
* int offset,
@ -843,6 +845,7 @@ interface messages
/**
* @param array params [
* boolean exclude_pinned,
* int folder_id,
* int offset_date,
* int offset_id,
* InputPeer offset_peer,
@ -1344,7 +1347,7 @@ interface messages
/**
* @param array params [
* string q,
* int offset_date,
* int offset_rate,
* InputPeer offset_peer,
* int offset_id,
* int limit,
@ -1707,6 +1710,7 @@ interface messages
/**
* @param array params [
* boolean force,
* int folder_id,
* InputDialogPeer order,
* ]
*
@ -1715,9 +1719,13 @@ interface messages
public function reorderPinnedDialogs(array $params);
/**
* @param array params [
* int folder_id,
* ]
*
* @return messages_PeerDialogs
*/
public function getPinnedDialogs();
public function getPinnedDialogs(array $params);
/**
* @param array params [
@ -1965,6 +1973,15 @@ interface messages
*/
public function getEmojiKeywordsDifference(array $params);
/**
* @param array params [
* string lang_codes,
* ]
*
* @return Vector_of_EmojiLanguage
*/
public function getEmojiKeywordsLanguages(array $params);
/**
* @param array params [
* string lang_code,
@ -1973,6 +1990,39 @@ interface messages
* @return EmojiURL
*/
public function getEmojiURL(array $params);
/**
* @param array params [
* InputPeer peer,
* MessagesFilter filters,
* ]
*
* @return Vector_of_messages_SearchCounter
*/
public function getSearchCounters(array $params);
/**
* @param array params [
* InputPeer peer,
* int msg_id,
* int button_id,
* ]
*
* @return UrlAuthResult
*/
public function requestUrlAuth(array $params);
/**
* @param array params [
* boolean write_allowed,
* InputPeer peer,
* int msg_id,
* int button_id,
* ]
*
* @return UrlAuthResult
*/
public function acceptUrlAuth(array $params);
}
interface updates
@ -2574,6 +2624,26 @@ interface channels
* @return messages_Chats
*/
public function getLeftChannels(array $params);
/**
* @return messages_Chats
*/
public function getGroupsForDiscussion();
/**
* @return messages_Chats
*/
public function getBroadcastsForDiscussion();
/**
* @param array params [
* InputChannel broadcast,
* InputChannel group,
* ]
*
* @return bool
*/
public function setDiscussionGroup(array $params);
}
interface bots
@ -2712,6 +2782,7 @@ interface phone
/**
* @param array params [
* boolean video,
* InputUser user_id,
* bytes g_a_hash,
* PhoneCallProtocol protocol,
@ -2755,6 +2826,7 @@ interface phone
/**
* @param array params [
* boolean video,
* InputPhoneCall peer,
* int duration,
* PhoneCallDiscardReason reason,
@ -2841,3 +2913,24 @@ interface langpack
*/
public function getLanguage(array $params);
}
interface folders
{
/**
* @param array params [
* InputFolderPeer folder_peers,
* ]
*
* @return Updates
*/
public function editPeerFolders(array $params);
/**
* @param array params [
* int folder_id,
* ]
*
* @return Updates
*/
public function deleteFolder(array $params);
}

View File

@ -4906,6 +4906,175 @@ class Lang
'object_emojiKeywordsDifference_param_keywords_type_Vector t' => 'Keywords',
'object_emojiURL' => 'Emoji URL',
'object_emojiURL_param_url_type_string' => 'URL',
'method_contacts.getTopPeers_param_forward_users_type_true' => 'Forward users?',
'method_contacts.getTopPeers_param_forward_chats_type_true' => 'Forward chats?',
'method_messages.getDialogs_param_folder_id_type_int' => 'Folder ID',
'method_messages.searchGlobal_param_offset_rate_type_int' => 'Offset rate',
'method_messages.reorderPinnedDialogs_param_folder_id_type_int' => 'Folder ID',
'method_messages.getPinnedDialogs_param_folder_id_type_int' => 'Folder ID',
'method_messages.getEmojiKeywordsLanguages' => 'Get emoji keyword languages',
'method_messages.getEmojiKeywordsLanguages_param_lang_codes_type_Vector t' => 'Language codes',
'method_messages.getSearchCounters' => 'Get search counter',
'method_messages.getSearchCounters_param_peer_type_InputPeer' => 'Peer',
'method_messages.getSearchCounters_param_filters_type_Vector t' => 'Filters',
'method_messages.requestUrlAuth' => 'Request URL authorization',
'method_messages.requestUrlAuth_param_peer_type_InputPeer' => 'Peer',
'method_messages.requestUrlAuth_param_msg_id_type_int' => 'Message ID',
'method_messages.requestUrlAuth_param_button_id_type_int' => 'Button ID',
'method_messages.acceptUrlAuth' => 'Accept URL authorization',
'method_messages.acceptUrlAuth_param_write_allowed_type_true' => 'Write allowed?',
'method_messages.acceptUrlAuth_param_peer_type_InputPeer' => 'Peer',
'method_messages.acceptUrlAuth_param_msg_id_type_int' => 'Message ID',
'method_messages.acceptUrlAuth_param_button_id_type_int' => 'Button ID',
'method_channels.getGroupsForDiscussion' => 'Get groups for discussion',
'method_channels.getBroadcastsForDiscussion' => 'Get channels for discussion',
'method_channels.setDiscussionGroup' => 'Set discussion group of channel',
'method_channels.setDiscussionGroup_param_broadcast_type_InputChannel' => 'The channel',
'method_channels.setDiscussionGroup_param_group_type_InputChannel' => 'The group',
'method_phone.requestCall_param_video_type_true' => 'You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls',
'method_phone.discardCall_param_video_type_true' => 'You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls',
'method_folders.editPeerFolders' => 'Edit folder',
'method_folders.editPeerFolders_param_folder_peers_type_Vector t' => 'New folder peers',
'method_folders.deleteFolder' => 'Delete folder',
'method_folders.deleteFolder_param_folder_id_type_int' => 'Folder ID',
'object_inputPeerUserFromMessage' => 'User from message',
'object_inputPeerUserFromMessage_param_peer_type_InputPeer' => 'Chat',
'object_inputPeerUserFromMessage_param_msg_id_type_int' => 'Message ID',
'object_inputPeerUserFromMessage_param_user_id_type_int' => 'User ID',
'object_inputPeerChannelFromMessage' => 'Channel from message',
'object_inputPeerChannelFromMessage_param_peer_type_InputPeer' => 'Peer',
'object_inputPeerChannelFromMessage_param_msg_id_type_int' => 'Message ID',
'object_inputPeerChannelFromMessage_param_channel_id_type_int' => 'Channel ID',
'object_inputUserFromMessage' => 'User from message',
'object_inputUserFromMessage_param_peer_type_InputPeer' => 'Peer',
'object_inputUserFromMessage_param_msg_id_type_int' => 'Message ID',
'object_inputUserFromMessage_param_user_id_type_int' => 'User ID',
'object_inputDocumentFileLocation_param_thumb_size_type_string' => 'Thumb size',
'object_inputPhotoFileLocation' => 'Photo file location',
'object_inputPhotoFileLocation_param_id_type_long' => 'ID',
'object_inputPhotoFileLocation_param_access_hash_type_long' => 'Access hash',
'object_inputPhotoFileLocation_param_file_reference_type_bytes' => 'File reference',
'object_inputPhotoFileLocation_param_thumb_size_type_string' => 'Thumb size',
'object_inputPeerPhotoFileLocation' => 'Profile picture location',
'object_inputPeerPhotoFileLocation_param_big_type_true' => 'Big?',
'object_inputPeerPhotoFileLocation_param_peer_type_InputPeer' => 'Peer',
'object_inputPeerPhotoFileLocation_param_volume_id_type_long' => 'Volume ID',
'object_inputPeerPhotoFileLocation_param_local_id_type_int' => 'Local ID',
'object_inputStickerSetThumb' => 'Stickerset thumbnail',
'object_inputStickerSetThumb_param_stickerset_type_InputStickerSet' => 'Stickerset',
'object_inputStickerSetThumb_param_volume_id_type_long' => 'Volume ID',
'object_inputStickerSetThumb_param_local_id_type_int' => 'Local ID',
'object_user_param_scam_type_true' => 'Scam?',
'object_userProfilePhoto_param_dc_id_type_int' => 'DC ID',
'object_channel_param_scam_type_true' => 'Scam channel',
'object_channel_param_has_link_type_true' => 'Has linked chat?',
'object_chatFull_param_folder_id_type_int' => 'Folder ID',
'object_channelFull_param_folder_id_type_int' => 'Folder ID',
'object_channelFull_param_linked_chat_id_type_int' => 'Linked chat ID',
'object_channelFull_param_pts_type_int' => 'PTS',
'object_chatPhoto_param_dc_id_type_int' => 'DC ID',
'object_message_param_legacy_type_true' => 'Legacy message',
'object_messageService_param_legacy_type_true' => 'Legacy message',
'object_messageActionPhoneCall_param_video_type_true' => 'Video call?',
'object_dialog_param_folder_id_type_int' => 'Folder ID',
'object_dialogFolder' => 'Dialog folder',
'object_dialogFolder_param_pinned_type_true' => 'Pinned?',
'object_dialogFolder_param_folder_type_Folder' => 'Folder',
'object_dialogFolder_param_peer_type_Peer' => 'Peer',
'object_dialogFolder_param_top_message_type_int' => 'Top message',
'object_dialogFolder_param_unread_muted_peers_count_type_int' => 'Unread muted peers count',
'object_dialogFolder_param_unread_unmuted_peers_count_type_int' => 'Unread unmuted peer count',
'object_dialogFolder_param_unread_muted_messages_count_type_int' => 'Unread muted messages count',
'object_dialogFolder_param_unread_unmuted_messages_count_type_int' => 'Unread unmuted messages count',
'object_photo_param_dc_id_type_int' => 'DC ID',
'object_userFull_param_folder_id_type_int' => 'Folder ID',
'object_messages.messagesSlice_param_next_rate_type_int' => 'Next rate',
'object_updateReadHistoryInbox_param_folder_id_type_int' => 'Folder ID',
'object_updateReadHistoryInbox_param_still_unread_count_type_int' => 'Still unread count',
'object_updateReadChannelInbox_param_folder_id_type_int' => 'Folder ID',
'object_updateReadChannelInbox_param_still_unread_count_type_int' => 'Still unread count',
'object_updateReadChannelInbox_param_pts_type_int' => 'PTS',
'object_updateDialogPinned_param_folder_id_type_int' => 'Folder ID',
'object_updatePinnedDialogs_param_folder_id_type_int' => 'Folder ID',
'object_updateFolderPeers' => 'Folder update',
'object_updateFolderPeers_param_folder_peers_type_Vector t' => 'New folder peers',
'object_updateFolderPeers_param_pts_type_int' => 'PTS',
'object_updateFolderPeers_param_pts_count_type_int' => 'PTS',
'object_config_param_pinned_infolder_count_max_type_int' => 'Pinned infolder count max_type',
'object_inputPrivacyKeyPhoneNumber' => 'Phone number',
'object_privacyKeyPhoneNumber' => 'Phone number',
'object_inputPrivacyValueAllowChatParticipants' => 'Allow chat participant?',
'object_inputPrivacyValueAllowChatParticipants_param_chats_type_Vector t' => 'Chats',
'object_inputPrivacyValueDisallowChatParticipants' => 'Disallowed chats',
'object_inputPrivacyValueDisallowChatParticipants_param_chats_type_Vector t' => 'CHats',
'object_privacyValueAllowChatParticipants' => 'Allow chat participants?',
'object_privacyValueAllowChatParticipants_param_chats_type_Vector t' => 'Allowed chats',
'object_privacyValueDisallowChatParticipants' => 'Diallowed chats',
'object_privacyValueDisallowChatParticipants_param_chats_type_Vector t' => 'Disallowed chats',
'object_account.privacyRules_param_chats_type_Vector t' => 'Chats allowed?',
'object_chatInvite_param_photo_type_Photo' => 'Photo',
'object_stickerSet_param_thumb_dc_id_type_int' => 'DC ID',
'object_keyboardButtonUrlAuth' => 'Url authorization request',
'object_keyboardButtonUrlAuth_param_text_type_string' => 'Text',
'object_keyboardButtonUrlAuth_param_fwd_text_type_string' => 'Forward text',
'object_keyboardButtonUrlAuth_param_url_type_string' => 'URL',
'object_keyboardButtonUrlAuth_param_button_id_type_int' => 'Button ID',
'object_inputKeyboardButtonUrlAuth' => 'Request authorization',
'object_inputKeyboardButtonUrlAuth_param_request_write_access_type_true' => 'Request write access?',
'object_inputKeyboardButtonUrlAuth_param_text_type_string' => 'Text',
'object_inputKeyboardButtonUrlAuth_param_fwd_text_type_string' => 'Forward text',
'object_inputKeyboardButtonUrlAuth_param_url_type_string' => 'URL',
'object_inputKeyboardButtonUrlAuth_param_bot_type_InputUser' => 'Bot',
'object_inputChannelFromMessage' => 'Channel from message',
'object_inputChannelFromMessage_param_peer_type_InputPeer' => 'Peer',
'object_inputChannelFromMessage_param_msg_id_type_int' => 'Message ID',
'object_inputChannelFromMessage_param_channel_id_type_int' => 'Channel ID',
'object_updates.channelDifferenceTooLong_param_dialog_type_Dialog' => 'Dialog',
'object_topPeerCategoryForwardUsers' => 'Top peer category: forward users',
'object_topPeerCategoryForwardChats' => 'Top peer category: forward chats',
'object_phoneCallWaiting_param_video_type_true' => 'Video call?',
'object_phoneCallRequested_param_video_type_true' => 'Video call?',
'object_phoneCallAccepted_param_video_type_true' => 'Video call?',
'object_phoneCall_param_connections_type_Vector t' => 'Phone connections',
'object_phoneCallDiscarded_param_video_type_true' => 'Video call?',
'object_channelAdminLogEventActionChangePhoto_param_prev_photo_type_Photo' => 'Old photo',
'object_channelAdminLogEventActionChangePhoto_param_new_photo_type_Photo' => 'New photo',
'object_channelAdminLogEventActionChangeLinkedChat' => 'Linked chat was changed',
'object_channelAdminLogEventActionChangeLinkedChat_param_prev_value_type_int' => 'Old linked chat',
'object_channelAdminLogEventActionChangeLinkedChat_param_new_value_type_int' => 'New linked chat',
'object_inputDialogPeerFolder' => 'Dialog peer folder',
'object_inputDialogPeerFolder_param_folder_id_type_int' => 'Folder ID',
'object_dialogPeerFolder' => 'Dialog peer folder',
'object_dialogPeerFolder_param_folder_id_type_int' => 'Folder ID',
'object_emojiLanguage' => 'Emoji language',
'object_emojiLanguage_param_lang_code_type_string' => 'Language code',
'object_fileLocationToBeDeprecated' => 'File location (deprecated)',
'object_fileLocationToBeDeprecated_param_volume_id_type_long' => 'Volume ID',
'object_fileLocationToBeDeprecated_param_local_id_type_int' => 'Local ID',
'object_folder' => 'Folder',
'object_folder_param_autofill_new_broadcasts_type_true' => 'New broadcasts?',
'object_folder_param_autofill_public_groups_type_true' => 'Autofill public groups?',
'object_folder_param_autofill_new_correspondents_type_true' => 'New correspondents',
'object_folder_param_id_type_int' => 'ID',
'object_folder_param_title_type_string' => 'Title',
'object_folder_param_photo_type_ChatPhoto' => 'Photo',
'object_inputFolderPeer' => 'Folder peer',
'object_inputFolderPeer_param_peer_type_InputPeer' => 'Peer',
'object_inputFolderPeer_param_folder_id_type_int' => 'Folder ID',
'object_folderPeer' => 'Peer',
'object_folderPeer_param_peer_type_Peer' => 'Peer',
'object_folderPeer_param_folder_id_type_int' => 'Folder ID',
'object_messages.searchCounter' => 'Search counter',
'object_messages.searchCounter_param_inexact_type_true' => 'Inexact?',
'object_messages.searchCounter_param_filter_type_MessagesFilter' => 'Filter',
'object_messages.searchCounter_param_count_type_int' => 'Count',
'object_urlAuthResultRequest' => 'Request',
'object_urlAuthResultRequest_param_request_write_access_type_true' => 'Request write access?',
'object_urlAuthResultRequest_param_bot_type_User' => 'Bot',
'object_urlAuthResultRequest_param_domain_type_string' => 'Doamin',
'object_urlAuthResultAccepted' => 'URL authorization accepted',
'object_urlAuthResultAccepted_param_url_type_string' => 'URL',
'object_urlAuthResultDefault' => 'Default result',
),
);
@ -9653,5 +9822,174 @@ class Lang
'object_emojiKeywordsDifference_param_keywords_type_Vector t' => 'Keywords',
'object_emojiURL' => 'Emoji URL',
'object_emojiURL_param_url_type_string' => 'URL',
'method_contacts.getTopPeers_param_forward_users_type_true' => 'Forward users?',
'method_contacts.getTopPeers_param_forward_chats_type_true' => 'Forward chats?',
'method_messages.getDialogs_param_folder_id_type_int' => 'Folder ID',
'method_messages.searchGlobal_param_offset_rate_type_int' => 'Offset rate',
'method_messages.reorderPinnedDialogs_param_folder_id_type_int' => 'Folder ID',
'method_messages.getPinnedDialogs_param_folder_id_type_int' => 'Folder ID',
'method_messages.getEmojiKeywordsLanguages' => 'Get emoji keyword languages',
'method_messages.getEmojiKeywordsLanguages_param_lang_codes_type_Vector t' => 'Language codes',
'method_messages.getSearchCounters' => 'Get search counter',
'method_messages.getSearchCounters_param_peer_type_InputPeer' => 'Peer',
'method_messages.getSearchCounters_param_filters_type_Vector t' => 'Filters',
'method_messages.requestUrlAuth' => 'Request URL authorization',
'method_messages.requestUrlAuth_param_peer_type_InputPeer' => 'Peer',
'method_messages.requestUrlAuth_param_msg_id_type_int' => 'Message ID',
'method_messages.requestUrlAuth_param_button_id_type_int' => 'Button ID',
'method_messages.acceptUrlAuth' => 'Accept URL authorization',
'method_messages.acceptUrlAuth_param_write_allowed_type_true' => 'Write allowed?',
'method_messages.acceptUrlAuth_param_peer_type_InputPeer' => 'Peer',
'method_messages.acceptUrlAuth_param_msg_id_type_int' => 'Message ID',
'method_messages.acceptUrlAuth_param_button_id_type_int' => 'Button ID',
'method_channels.getGroupsForDiscussion' => 'Get groups for discussion',
'method_channels.getBroadcastsForDiscussion' => 'Get channels for discussion',
'method_channels.setDiscussionGroup' => 'Set discussion group of channel',
'method_channels.setDiscussionGroup_param_broadcast_type_InputChannel' => 'The channel',
'method_channels.setDiscussionGroup_param_group_type_InputChannel' => 'The group',
'method_phone.requestCall_param_video_type_true' => 'You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls',
'method_phone.discardCall_param_video_type_true' => 'You cannot use this method directly, see https://docs.madelineproto.xyz#calls for more info on handling calls',
'method_folders.editPeerFolders' => 'Edit folder',
'method_folders.editPeerFolders_param_folder_peers_type_Vector t' => 'New folder peers',
'method_folders.deleteFolder' => 'Delete folder',
'method_folders.deleteFolder_param_folder_id_type_int' => 'Folder ID',
'object_inputPeerUserFromMessage' => 'User from message',
'object_inputPeerUserFromMessage_param_peer_type_InputPeer' => 'Chat',
'object_inputPeerUserFromMessage_param_msg_id_type_int' => 'Message ID',
'object_inputPeerUserFromMessage_param_user_id_type_int' => 'User ID',
'object_inputPeerChannelFromMessage' => 'Channel from message',
'object_inputPeerChannelFromMessage_param_peer_type_InputPeer' => 'Peer',
'object_inputPeerChannelFromMessage_param_msg_id_type_int' => 'Message ID',
'object_inputPeerChannelFromMessage_param_channel_id_type_int' => 'Channel ID',
'object_inputUserFromMessage' => 'User from message',
'object_inputUserFromMessage_param_peer_type_InputPeer' => 'Peer',
'object_inputUserFromMessage_param_msg_id_type_int' => 'Message ID',
'object_inputUserFromMessage_param_user_id_type_int' => 'User ID',
'object_inputDocumentFileLocation_param_thumb_size_type_string' => 'Thumb size',
'object_inputPhotoFileLocation' => 'Photo file location',
'object_inputPhotoFileLocation_param_id_type_long' => 'ID',
'object_inputPhotoFileLocation_param_access_hash_type_long' => 'Access hash',
'object_inputPhotoFileLocation_param_file_reference_type_bytes' => 'File reference',
'object_inputPhotoFileLocation_param_thumb_size_type_string' => 'Thumb size',
'object_inputPeerPhotoFileLocation' => 'Profile picture location',
'object_inputPeerPhotoFileLocation_param_big_type_true' => 'Big?',
'object_inputPeerPhotoFileLocation_param_peer_type_InputPeer' => 'Peer',
'object_inputPeerPhotoFileLocation_param_volume_id_type_long' => 'Volume ID',
'object_inputPeerPhotoFileLocation_param_local_id_type_int' => 'Local ID',
'object_inputStickerSetThumb' => 'Stickerset thumbnail',
'object_inputStickerSetThumb_param_stickerset_type_InputStickerSet' => 'Stickerset',
'object_inputStickerSetThumb_param_volume_id_type_long' => 'Volume ID',
'object_inputStickerSetThumb_param_local_id_type_int' => 'Local ID',
'object_user_param_scam_type_true' => 'Scam?',
'object_userProfilePhoto_param_dc_id_type_int' => 'DC ID',
'object_channel_param_scam_type_true' => 'Scam channel',
'object_channel_param_has_link_type_true' => 'Has linked chat?',
'object_chatFull_param_folder_id_type_int' => 'Folder ID',
'object_channelFull_param_folder_id_type_int' => 'Folder ID',
'object_channelFull_param_linked_chat_id_type_int' => 'Linked chat ID',
'object_channelFull_param_pts_type_int' => 'PTS',
'object_chatPhoto_param_dc_id_type_int' => 'DC ID',
'object_message_param_legacy_type_true' => 'Legacy message',
'object_messageService_param_legacy_type_true' => 'Legacy message',
'object_messageActionPhoneCall_param_video_type_true' => 'Video call?',
'object_dialog_param_folder_id_type_int' => 'Folder ID',
'object_dialogFolder' => 'Dialog folder',
'object_dialogFolder_param_pinned_type_true' => 'Pinned?',
'object_dialogFolder_param_folder_type_Folder' => 'Folder',
'object_dialogFolder_param_peer_type_Peer' => 'Peer',
'object_dialogFolder_param_top_message_type_int' => 'Top message',
'object_dialogFolder_param_unread_muted_peers_count_type_int' => 'Unread muted peers count',
'object_dialogFolder_param_unread_unmuted_peers_count_type_int' => 'Unread unmuted peer count',
'object_dialogFolder_param_unread_muted_messages_count_type_int' => 'Unread muted messages count',
'object_dialogFolder_param_unread_unmuted_messages_count_type_int' => 'Unread unmuted messages count',
'object_photo_param_dc_id_type_int' => 'DC ID',
'object_userFull_param_folder_id_type_int' => 'Folder ID',
'object_messages.messagesSlice_param_next_rate_type_int' => 'Next rate',
'object_updateReadHistoryInbox_param_folder_id_type_int' => 'Folder ID',
'object_updateReadHistoryInbox_param_still_unread_count_type_int' => 'Still unread count',
'object_updateReadChannelInbox_param_folder_id_type_int' => 'Folder ID',
'object_updateReadChannelInbox_param_still_unread_count_type_int' => 'Still unread count',
'object_updateReadChannelInbox_param_pts_type_int' => 'PTS',
'object_updateDialogPinned_param_folder_id_type_int' => 'Folder ID',
'object_updatePinnedDialogs_param_folder_id_type_int' => 'Folder ID',
'object_updateFolderPeers' => 'Folder update',
'object_updateFolderPeers_param_folder_peers_type_Vector t' => 'New folder peers',
'object_updateFolderPeers_param_pts_type_int' => 'PTS',
'object_updateFolderPeers_param_pts_count_type_int' => 'PTS',
'object_config_param_pinned_infolder_count_max_type_int' => 'Pinned infolder count max_type',
'object_inputPrivacyKeyPhoneNumber' => 'Phone number',
'object_privacyKeyPhoneNumber' => 'Phone number',
'object_inputPrivacyValueAllowChatParticipants' => 'Allow chat participant?',
'object_inputPrivacyValueAllowChatParticipants_param_chats_type_Vector t' => 'Chats',
'object_inputPrivacyValueDisallowChatParticipants' => 'Disallowed chats',
'object_inputPrivacyValueDisallowChatParticipants_param_chats_type_Vector t' => 'CHats',
'object_privacyValueAllowChatParticipants' => 'Allow chat participants?',
'object_privacyValueAllowChatParticipants_param_chats_type_Vector t' => 'Allowed chats',
'object_privacyValueDisallowChatParticipants' => 'Diallowed chats',
'object_privacyValueDisallowChatParticipants_param_chats_type_Vector t' => 'Disallowed chats',
'object_account.privacyRules_param_chats_type_Vector t' => 'Chats allowed?',
'object_chatInvite_param_photo_type_Photo' => 'Photo',
'object_stickerSet_param_thumb_dc_id_type_int' => 'DC ID',
'object_keyboardButtonUrlAuth' => 'Url authorization request',
'object_keyboardButtonUrlAuth_param_text_type_string' => 'Text',
'object_keyboardButtonUrlAuth_param_fwd_text_type_string' => 'Forward text',
'object_keyboardButtonUrlAuth_param_url_type_string' => 'URL',
'object_keyboardButtonUrlAuth_param_button_id_type_int' => 'Button ID',
'object_inputKeyboardButtonUrlAuth' => 'Request authorization',
'object_inputKeyboardButtonUrlAuth_param_request_write_access_type_true' => 'Request write access?',
'object_inputKeyboardButtonUrlAuth_param_text_type_string' => 'Text',
'object_inputKeyboardButtonUrlAuth_param_fwd_text_type_string' => 'Forward text',
'object_inputKeyboardButtonUrlAuth_param_url_type_string' => 'URL',
'object_inputKeyboardButtonUrlAuth_param_bot_type_InputUser' => 'Bot',
'object_inputChannelFromMessage' => 'Channel from message',
'object_inputChannelFromMessage_param_peer_type_InputPeer' => 'Peer',
'object_inputChannelFromMessage_param_msg_id_type_int' => 'Message ID',
'object_inputChannelFromMessage_param_channel_id_type_int' => 'Channel ID',
'object_updates.channelDifferenceTooLong_param_dialog_type_Dialog' => 'Dialog',
'object_topPeerCategoryForwardUsers' => 'Top peer category: forward users',
'object_topPeerCategoryForwardChats' => 'Top peer category: forward chats',
'object_phoneCallWaiting_param_video_type_true' => 'Video call?',
'object_phoneCallRequested_param_video_type_true' => 'Video call?',
'object_phoneCallAccepted_param_video_type_true' => 'Video call?',
'object_phoneCall_param_connections_type_Vector t' => 'Phone connections',
'object_phoneCallDiscarded_param_video_type_true' => 'Video call?',
'object_channelAdminLogEventActionChangePhoto_param_prev_photo_type_Photo' => 'Old photo',
'object_channelAdminLogEventActionChangePhoto_param_new_photo_type_Photo' => 'New photo',
'object_channelAdminLogEventActionChangeLinkedChat' => 'Linked chat was changed',
'object_channelAdminLogEventActionChangeLinkedChat_param_prev_value_type_int' => 'Old linked chat',
'object_channelAdminLogEventActionChangeLinkedChat_param_new_value_type_int' => 'New linked chat',
'object_inputDialogPeerFolder' => 'Dialog peer folder',
'object_inputDialogPeerFolder_param_folder_id_type_int' => 'Folder ID',
'object_dialogPeerFolder' => 'Dialog peer folder',
'object_dialogPeerFolder_param_folder_id_type_int' => 'Folder ID',
'object_emojiLanguage' => 'Emoji language',
'object_emojiLanguage_param_lang_code_type_string' => 'Language code',
'object_fileLocationToBeDeprecated' => 'File location (deprecated)',
'object_fileLocationToBeDeprecated_param_volume_id_type_long' => 'Volume ID',
'object_fileLocationToBeDeprecated_param_local_id_type_int' => 'Local ID',
'object_folder' => 'Folder',
'object_folder_param_autofill_new_broadcasts_type_true' => 'New broadcasts?',
'object_folder_param_autofill_public_groups_type_true' => 'Autofill public groups?',
'object_folder_param_autofill_new_correspondents_type_true' => 'New correspondents',
'object_folder_param_id_type_int' => 'ID',
'object_folder_param_title_type_string' => 'Title',
'object_folder_param_photo_type_ChatPhoto' => 'Photo',
'object_inputFolderPeer' => 'Folder peer',
'object_inputFolderPeer_param_peer_type_InputPeer' => 'Peer',
'object_inputFolderPeer_param_folder_id_type_int' => 'Folder ID',
'object_folderPeer' => 'Peer',
'object_folderPeer_param_peer_type_Peer' => 'Peer',
'object_folderPeer_param_folder_id_type_int' => 'Folder ID',
'object_messages.searchCounter' => 'Search counter',
'object_messages.searchCounter_param_inexact_type_true' => 'Inexact?',
'object_messages.searchCounter_param_filter_type_MessagesFilter' => 'Filter',
'object_messages.searchCounter_param_count_type_int' => 'Count',
'object_urlAuthResultRequest' => 'Request',
'object_urlAuthResultRequest_param_request_write_access_type_true' => 'Request write access?',
'object_urlAuthResultRequest_param_bot_type_User' => 'Bot',
'object_urlAuthResultRequest_param_domain_type_string' => 'Doamin',
'object_urlAuthResultAccepted' => 'URL authorization accepted',
'object_urlAuthResultAccepted_param_url_type_string' => 'URL',
'object_urlAuthResultDefault' => 'Default result',
);
}
}

View File

@ -606,7 +606,35 @@ trait Files
}
try {
$res = $cdn ? yield $this->method_call_async_read('upload.getCdnFile', ['file_token' => $message_media['file_token'], 'offset' => $offset, 'limit' => $part_size], ['heavy' => true, 'file' => true, 'datacenter' => $datacenter]) : yield $this->method_call_async_read('upload.getFile', ['location' => $message_media['InputFileLocation'], 'offset' => $offset, 'limit' => $part_size], ['heavy' => true, 'file' => true, 'datacenter' => &$datacenter]);
$res = $cdn ?
yield $this->method_call_async_read(
'upload.getCdnFile',
[
'file_token' => $message_media['file_token'],
'offset' => $offset,
'limit' => $part_size
],
[
'heavy' => true,
'file' => true,
'FloodWaitLimit' => 0,
'datacenter' => $datacenter
]
) :
yield $this->method_call_async_read(
'upload.getFile',
[
'location' => $message_media['InputFileLocation'],
'offset' => $offset,
'limit' => $part_size
],
[
'heavy' => true,
'file' => true,
'FloodWaitLimit' => 0,
'datacenter' => &$datacenter
]
);
} catch (\danog\MadelineProto\RPCErrorException $e) {
if (strpos($e->rpc, 'FLOOD_WAIT_') === 0) {
if (isset($message_media['MessageMedia']) && !$this->authorization['user']['bot'] && $this->settings['download']['report_broken_media']) {