From 0a91935cc1f52260143966881814470c2678143a Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Wed, 29 Aug 2018 17:27:28 +0200 Subject: [PATCH] Docufixes --- docs | 2 +- src/danog/MadelineProto/Lang.php | 62 ++++++++++++++++++++++++-------- 2 files changed, 48 insertions(+), 16 deletions(-) diff --git a/docs b/docs index 20c8ae8c..fbf63446 160000 --- a/docs +++ b/docs @@ -1 +1 @@ -Subproject commit 20c8ae8cef2339ce48eaa1ece6351f90b342ddce +Subproject commit fbf634469595ff88e833e13964a797a79f4dc42f diff --git a/src/danog/MadelineProto/Lang.php b/src/danog/MadelineProto/Lang.php index f82f25fa..7c9dfc55 100644 --- a/src/danog/MadelineProto/Lang.php +++ b/src/danog/MadelineProto/Lang.php @@ -1357,11 +1357,11 @@ class Lang '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_MTmessage' => 'MTProto message', + 'object_MTmessage_param_msg_id_type_long' => 'Message ID', + 'object_MTmessage_param_seqno_type_int' => 'Seqno', + 'object_MTmessage_param_bytes_type_int' => 'Message body', + 'object_MTmessage_param_body_type_Object' => 'Message body', 'object_msg_copy' => '', 'object_msg_copy_param_orig_message_type_MTMessage' => '', 'object_gzip_packed' => '', @@ -4437,6 +4437,22 @@ class Lang 'object_contacts.topPeersDisabled' => '', 'object_draftMessageEmpty_param_date_type_int' => '', 'object_inputWebFileGeoPointLocation_param_access_hash_type_long' => '', + 'method_contacts.getContacts_param_hash_type_Vector t' => 'User IDs of previously cached contacts', + 'method_contacts.getTopPeers_param_hash_type_Vector t' => 'Peer IDs of previously cached peers', + 'method_messages.getDialogs_param_hash_type_Vector t' => 'IDs of previously fetched dialogs', + 'method_messages.getHistory_param_hash_type_Vector t' => 'IDs of messages you already fetched', + 'method_messages.search_param_hash_type_Vector t' => 'The IDs of messages you already fetched', + 'method_messages.getStickers_param_hash_type_Vector t' => ' the hash parameter of the previous result of this method', + 'method_messages.getAllStickers_param_hash_type_Vector t' => 'the hash parameter of the previous result of this method', + 'method_messages.getSavedGifs_param_hash_type_Vector t' => ' the hash parameter of the previous result of this method', + 'method_messages.getFeaturedStickers_param_hash_type_Vector t' => ' the hash parameter of the previous result of this method', + 'method_messages.getRecentStickers_param_hash_type_Vector t' => 'IDs the hash parameter of the previous result of this method', + 'method_messages.getMaskStickers_param_hash_type_Vector t' => ' the hash parameter of the previous result of this method', + 'method_messages.getWebPage_param_hash_type_Vector t' => ' the hash parameter of the previous result of this method', + 'method_messages.getFavedStickers_param_hash_type_Vector t' => ' the hash parameter of the previous result of this method', + 'method_messages.getRecentLocations_param_hash_type_Vector t' => 'IDs of locations you already fetched', + 'method_messages.searchStickerSets_param_hash_type_Vector t' => 'The IDs of stickersets you already fetched', + 'method_channels.getParticipants_param_hash_type_Vector t' => 'IDs of previously fetched participants', ), ); @@ -4759,7 +4775,7 @@ class Lang '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 all contacts', - 'method_contacts.getContacts_param_hash_type_int' => 'User IDs of previously fetched contacts`', + 'method_contacts.getContacts_param_hash_type_int' => 'user ids of contacts previously fetched with this method', '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', @@ -4790,7 +4806,7 @@ class Lang 'method_contacts.getTopPeers_param_channels_type_true' => 'Fetch channels and supergroups?', 'method_contacts.getTopPeers_param_offset_type_int' => 'Initially 0, then `$offset += $contacts_TopPeers[\'categories\'][\'count\'];`', 'method_contacts.getTopPeers_param_limit_type_int' => 'How many results to fetch', - 'method_contacts.getTopPeers_param_hash_type_int' => 'IDs of peers you already cached', + 'method_contacts.getTopPeers_param_hash_type_int' => 'peer ids previously fetched with this method', 'method_contacts.resetTopPeerRating' => 'Reset top peer rating for a certain category/peer', 'method_contacts.resetTopPeerRating_param_category_type_TopPeerCategory' => 'The category ', 'method_contacts.resetTopPeerRating_param_peer_type_InputPeer' => 'The peer', @@ -4811,7 +4827,7 @@ class Lang 'method_messages.getHistory_param_limit_type_int' => 'Number of messages to fetch', 'method_messages.getHistory_param_max_id_type_int' => 'Maximum message ID to fetch', 'method_messages.getHistory_param_min_id_type_int' => 'Minumum message ID to fetch', - 'method_messages.getHistory_param_hash_type_int' => 'IDs of messages you already fetched', + 'method_messages.getHistory_param_hash_type_int' => 'list of IDs of already parsed messages', 'method_messages.search' => 'Search peers or messages', 'method_messages.search_param_peer_type_InputPeer' => 'Where to search', 'method_messages.search_param_q_type_string' => 'What to search', @@ -4929,7 +4945,7 @@ class Lang 'method_messages.readMessageContents_param_id_type_Vector t' => 'The messages to mark as read (only users and normal chats, not supergroups)', 'method_messages.getStickers' => 'Get stickers', 'method_messages.getStickers_param_emoticon_type_string' => 'Search by emoji', - 'method_messages.getStickers_param_hash_type_string' => 'IDs of stickers you already cached', + 'method_messages.getStickers_param_hash_type_string' => 'previously fetched sticker IDs', 'method_messages.getAllStickers' => 'Get all stickerpacks', 'method_messages.getAllStickers_param_hash_type_int' => '0 or $result[\'hash\']', 'method_messages.getWebPagePreview' => 'Get webpage preview', @@ -5640,11 +5656,11 @@ class Lang '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_MTmessage' => 'MTProto message', + 'object_MTmessage_param_msg_id_type_long' => 'Message ID', + 'object_MTmessage_param_seqno_type_int' => 'Seqno', + 'object_MTmessage_param_bytes_type_int' => 'Message body', + 'object_MTmessage_param_body_type_Object' => 'Message body', 'object_msg_copy' => '', 'object_msg_copy_param_orig_message_type_MTMessage' => '', 'object_gzip_packed' => '', @@ -8720,5 +8736,21 @@ class Lang 'object_contacts.topPeersDisabled' => '', 'object_draftMessageEmpty_param_date_type_int' => '', 'object_inputWebFileGeoPointLocation_param_access_hash_type_long' => '', + 'method_contacts.getContacts_param_hash_type_Vector t' => 'User IDs of previously cached contacts', + 'method_contacts.getTopPeers_param_hash_type_Vector t' => 'Peer IDs of previously cached peers', + 'method_messages.getDialogs_param_hash_type_Vector t' => 'IDs of previously fetched dialogs', + 'method_messages.getHistory_param_hash_type_Vector t' => 'IDs of messages you already fetched', + 'method_messages.search_param_hash_type_Vector t' => 'The IDs of messages you already fetched', + 'method_messages.getStickers_param_hash_type_Vector t' => ' the hash parameter of the previous result of this method', + 'method_messages.getAllStickers_param_hash_type_Vector t' => 'the hash parameter of the previous result of this method', + 'method_messages.getSavedGifs_param_hash_type_Vector t' => ' the hash parameter of the previous result of this method', + 'method_messages.getFeaturedStickers_param_hash_type_Vector t' => ' the hash parameter of the previous result of this method', + 'method_messages.getRecentStickers_param_hash_type_Vector t' => 'IDs the hash parameter of the previous result of this method', + 'method_messages.getMaskStickers_param_hash_type_Vector t' => ' the hash parameter of the previous result of this method', + 'method_messages.getWebPage_param_hash_type_Vector t' => ' the hash parameter of the previous result of this method', + 'method_messages.getFavedStickers_param_hash_type_Vector t' => ' the hash parameter of the previous result of this method', + 'method_messages.getRecentLocations_param_hash_type_Vector t' => 'IDs of locations you already fetched', + 'method_messages.searchStickerSets_param_hash_type_Vector t' => 'The IDs of stickersets you already fetched', + 'method_channels.getParticipants_param_hash_type_Vector t' => 'IDs of previously fetched participants', ); -} +} \ No newline at end of file