Added docs for layer 18, 23, 25, 27, 33, 38, 40, 41, 42, 44, 45, 46, 51, 53, 55

This commit is contained in:
Daniil Gentili 2017-01-02 20:04:36 +00:00
parent 43ba430b6d
commit 95ebf6147b
11019 changed files with 373433 additions and 21113 deletions

View File

@ -16,11 +16,11 @@ Also note that MadelineProto will perform better if a big math extension like gm
This project is in beta state.
The MadelineProto API documentation can be found [here](https://daniil.it/MadelineProto/API_docs/).
The MadelineProto API documentation can be found [here (layer 57)](https://daniil.it/MadelineProto/API_docs/).
The MadelineProto API documentation (mtproto tl scheme) can be found [here](https://daniil.it/MadelineProto/MTProto_docs/).
The MadelineProto API documentations (old layers) can be found [here (layer 46)](https://daniil.it/MadelineProto/API_docs_46/), [here (layer 55)](https://daniil.it/MadelineProto/API_docs_55/).
The MadelineProto API documentations (old layers) can be found [here](https://daniil.it/MadelineProto/old/).
## Usage

View File

@ -35,20 +35,27 @@ $docs = [
'description' => 'MadelineProto API documentation (layer 57)',
'output_dir' => __DIR__.'/docs/API_docs',
],
[
'tl_schema' => ['telegram' => __DIR__.'/src/danog/MadelineProto/TL_telegram_v55.json'],
'title' => 'MadelineProto API documentation (layer 55)',
'description' => 'MadelineProto API documentation (layer 55)',
'output_dir' => __DIR__.'/docs/API_docs_55',
],
[
'tl_schema' => ['telegram' => __DIR__.'/src/danog/MadelineProto/TL_telegram_v46.tl'],
'title' => 'MadelineProto API documentation (layer 46)',
'description' => 'MadelineProto API documentation (layer 46)',
'output_dir' => __DIR__.'/docs/API_docs_46',
],
];
$layer_list = '';
foreach (array_slice(glob(__DIR__.'/src/danog/MadelineProto/TL_telegram_*'), 0, -1) as $file) {
$layer = preg_replace(['/.*telegram_/', '/\..+/'], '', $file);
$docs []= [
'tl_schema' => ['telegram' => $file],
'title' => 'MadelineProto API documentation (layer '.$layer.')',
'description' => 'MadelineProto API documentation (layer '.$layer.')',
'output_dir' => __DIR__.'/docs/old/API_docs_'.$layer,
];
$layer_list = '[Layer '.$layer.'](API_docs_'.$layer.'/)
';
}
file_put_contents('docs/old/index.md', '---
title: Documentations of old mtproto layers
description: Documentation of old mtproto layers
---
# Documentation of old mtproto layers
'.$layer_list);
foreach ($docs as $settings) {
$doc = new \danog\MadelineProto\DocsBuilder($settings);
$doc->mk_docs();

View File

@ -22,4 +22,5 @@ description: accountDaysTTL attributes, type and example
```
$accountDaysTTL = ['_' => 'accountDaysTTL', 'days' => int, ];
```
```

View File

@ -22,4 +22,5 @@ description: account_authorizations attributes, type and example
```
$account_authorizations = ['_' => 'account_authorizations', 'authorizations' => [Vector t], ];
```
```

View File

@ -23,4 +23,5 @@ description: account_noPassword attributes, type and example
```
$account_noPassword = ['_' => 'account_noPassword', 'new_salt' => bytes, 'email_unconfirmed_pattern' => string, ];
```
```

View File

@ -26,4 +26,5 @@ description: account_password attributes, type and example
```
$account_password = ['_' => 'account_password', 'current_salt' => bytes, 'new_salt' => bytes, 'hint' => string, 'has_recovery' => Bool, 'email_unconfirmed_pattern' => string, ];
```
```

View File

@ -25,4 +25,5 @@ description: account_passwordInputSettings attributes, type and example
```
$account_passwordInputSettings = ['_' => 'account_passwordInputSettings', 'new_salt' => bytes, 'new_password_hash' => bytes, 'hint' => string, 'email' => string, ];
```
```

View File

@ -22,4 +22,5 @@ description: account_passwordSettings attributes, type and example
```
$account_passwordSettings = ['_' => 'account_passwordSettings', 'email' => string, ];
```
```

View File

@ -23,4 +23,5 @@ description: account_privacyRules attributes, type and example
```
$account_privacyRules = ['_' => 'account_privacyRules', 'rules' => [Vector t], 'users' => [Vector t], ];
```
```

View File

@ -23,4 +23,5 @@ description: auth_authorization attributes, type and example
```
$auth_authorization = ['_' => 'auth_authorization', 'tmp_sessions' => int, 'user' => User, ];
```
```

View File

@ -22,4 +22,5 @@ description: auth_checkedPhone attributes, type and example
```
$auth_checkedPhone = ['_' => 'auth_checkedPhone', 'phone_registered' => Bool, ];
```
```

View File

@ -17,4 +17,5 @@ description: auth_codeTypeCall attributes, type and example
```
$auth_codeTypeCall = ['_' => 'auth_codeTypeCall', ];
```
```

View File

@ -17,4 +17,5 @@ description: auth_codeTypeFlashCall attributes, type and example
```
$auth_codeTypeFlashCall = ['_' => 'auth_codeTypeFlashCall', ];
```
```

View File

@ -17,4 +17,5 @@ description: auth_codeTypeSms attributes, type and example
```
$auth_codeTypeSms = ['_' => 'auth_codeTypeSms', ];
```
```

View File

@ -23,4 +23,5 @@ description: auth_exportedAuthorization attributes, type and example
```
$auth_exportedAuthorization = ['_' => 'auth_exportedAuthorization', 'id' => int, 'bytes' => bytes, ];
```
```

View File

@ -22,4 +22,5 @@ description: auth_passwordRecovery attributes, type and example
```
$auth_passwordRecovery = ['_' => 'auth_passwordRecovery', 'email_pattern' => string, ];
```
```

View File

@ -26,4 +26,5 @@ description: auth_sentCode attributes, type and example
```
$auth_sentCode = ['_' => 'auth_sentCode', 'phone_registered' => true, 'type' => auth.SentCodeType, 'phone_code_hash' => string, 'next_type' => auth.CodeType, 'timeout' => int, ];
```
```

View File

@ -22,4 +22,5 @@ description: auth_sentCodeTypeApp attributes, type and example
```
$auth_sentCodeTypeApp = ['_' => 'auth_sentCodeTypeApp', 'length' => int, ];
```
```

View File

@ -22,4 +22,5 @@ description: auth_sentCodeTypeCall attributes, type and example
```
$auth_sentCodeTypeCall = ['_' => 'auth_sentCodeTypeCall', 'length' => int, ];
```
```

View File

@ -22,4 +22,5 @@ description: auth_sentCodeTypeFlashCall attributes, type and example
```
$auth_sentCodeTypeFlashCall = ['_' => 'auth_sentCodeTypeFlashCall', 'pattern' => string, ];
```
```

View File

@ -22,4 +22,5 @@ description: auth_sentCodeTypeSms attributes, type and example
```
$auth_sentCodeTypeSms = ['_' => 'auth_sentCodeTypeSms', 'length' => int, ];
```
```

View File

@ -33,4 +33,5 @@ description: authorization attributes, type and example
```
$authorization = ['_' => 'authorization', 'hash' => long, 'device_model' => string, 'platform' => string, 'system_version' => string, 'api_id' => int, 'app_name' => string, 'app_version' => string, 'date_created' => int, 'date_active' => int, 'ip' => string, 'country' => string, 'region' => string, ];
```
```

View File

@ -23,4 +23,5 @@ description: botCommand attributes, type and example
```
$botCommand = ['_' => 'botCommand', 'command' => string, 'description' => string, ];
```
```

View File

@ -24,4 +24,5 @@ description: botInfo attributes, type and example
```
$botInfo = ['_' => 'botInfo', 'user_id' => int, 'description' => string, 'commands' => [Vector t], ];
```
```

View File

@ -28,4 +28,5 @@ description: botInlineMediaResult attributes, type and example
```
$botInlineMediaResult = ['_' => 'botInlineMediaResult', 'id' => string, 'type' => string, 'photo' => Photo, 'document' => Document, 'title' => string, 'description' => string, 'send_message' => BotInlineMessage, ];
```
```

View File

@ -23,4 +23,5 @@ description: botInlineMessageMediaAuto attributes, type and example
```
$botInlineMessageMediaAuto = ['_' => 'botInlineMessageMediaAuto', 'caption' => string, 'reply_markup' => ReplyMarkup, ];
```
```

View File

@ -25,4 +25,5 @@ description: botInlineMessageMediaContact attributes, type and example
```
$botInlineMessageMediaContact = ['_' => 'botInlineMessageMediaContact', 'phone_number' => string, 'first_name' => string, 'last_name' => string, 'reply_markup' => ReplyMarkup, ];
```
```

View File

@ -23,4 +23,5 @@ description: botInlineMessageMediaGeo attributes, type and example
```
$botInlineMessageMediaGeo = ['_' => 'botInlineMessageMediaGeo', 'geo' => GeoPoint, 'reply_markup' => ReplyMarkup, ];
```
```

View File

@ -27,4 +27,5 @@ description: botInlineMessageMediaVenue attributes, type and example
```
$botInlineMessageMediaVenue = ['_' => 'botInlineMessageMediaVenue', 'geo' => GeoPoint, 'title' => string, 'address' => string, 'provider' => string, 'venue_id' => string, 'reply_markup' => ReplyMarkup, ];
```
```

View File

@ -25,4 +25,5 @@ description: botInlineMessageText attributes, type and example
```
$botInlineMessageText = ['_' => 'botInlineMessageText', 'no_webpage' => true, 'message' => string, 'entities' => [Vector t], 'reply_markup' => ReplyMarkup, ];
```
```

View File

@ -33,4 +33,5 @@ description: botInlineResult attributes, type and example
```
$botInlineResult = ['_' => 'botInlineResult', 'id' => string, 'type' => string, 'title' => string, 'description' => string, 'url' => string, 'thumb_url' => string, 'content_url' => string, 'content_type' => string, 'w' => int, 'h' => int, 'duration' => int, 'send_message' => BotInlineMessage, ];
```
```

View File

@ -41,4 +41,18 @@ description: channel attributes, type and example
```
$channel = ['_' => 'channel', 'creator' => true, 'kicked' => true, 'left' => true, 'editor' => true, 'moderator' => true, 'broadcast' => true, 'verified' => true, 'megagroup' => true, 'restricted' => true, 'democracy' => true, 'signatures' => true, 'min' => true, 'id' => int, 'access_hash' => long, 'title' => string, 'username' => string, 'photo' => ChatPhoto, 'date' => int, 'version' => int, 'restriction_reason' => string, ];
```
The following syntaxes can also be used:
```
$channel = '@username'; // Username
$channel = 44700; // bot API id (users)
$channel = -492772765; // bot API id (chats)
$channel = -10038575794; // bot API id (channels)
$channel = 'user#44700'; // tg-cli style id (users)
$channel = 'chat#492772765'; // tg-cli style id (chats)
$channel = 'channel#38575794'; // tg-cli style id (channels)
```

View File

@ -26,4 +26,18 @@ description: channelForbidden attributes, type and example
```
$channelForbidden = ['_' => 'channelForbidden', 'broadcast' => true, 'megagroup' => true, 'id' => int, 'access_hash' => long, 'title' => string, ];
```
The following syntaxes can also be used:
```
$channelForbidden = '@username'; // Username
$channelForbidden = 44700; // bot API id (users)
$channelForbidden = -492772765; // bot API id (chats)
$channelForbidden = -10038575794; // bot API id (channels)
$channelForbidden = 'user#44700'; // tg-cli style id (users)
$channelForbidden = 'chat#492772765'; // tg-cli style id (chats)
$channelForbidden = 'channel#38575794'; // tg-cli style id (channels)
```

View File

@ -38,4 +38,5 @@ description: channelFull attributes, type and example
```
$channelFull = ['_' => 'channelFull', 'can_view_participants' => true, 'can_set_username' => true, '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' => [Vector t], 'migrated_from_chat_id' => int, 'migrated_from_max_id' => int, 'pinned_msg_id' => int, ];
```
```

View File

@ -23,4 +23,5 @@ description: channelMessagesFilter attributes, type and example
```
$channelMessagesFilter = ['_' => 'channelMessagesFilter', 'exclude_new_messages' => true, 'ranges' => [Vector t], ];
```
```

View File

@ -17,4 +17,5 @@ description: channelMessagesFilterEmpty attributes, type and example
```
$channelMessagesFilterEmpty = ['_' => 'channelMessagesFilterEmpty', ];
```
```

View File

@ -23,4 +23,5 @@ description: channelParticipant attributes, type and example
```
$channelParticipant = ['_' => 'channelParticipant', 'user_id' => int, 'date' => int, ];
```
```

View File

@ -22,4 +22,5 @@ description: channelParticipantCreator attributes, type and example
```
$channelParticipantCreator = ['_' => 'channelParticipantCreator', 'user_id' => int, ];
```
```

View File

@ -24,4 +24,5 @@ description: channelParticipantEditor attributes, type and example
```
$channelParticipantEditor = ['_' => 'channelParticipantEditor', 'user_id' => int, 'inviter_id' => int, 'date' => int, ];
```
```

View File

@ -24,4 +24,5 @@ description: channelParticipantKicked attributes, type and example
```
$channelParticipantKicked = ['_' => 'channelParticipantKicked', 'user_id' => int, 'kicked_by' => int, 'date' => int, ];
```
```

View File

@ -24,4 +24,5 @@ description: channelParticipantModerator attributes, type and example
```
$channelParticipantModerator = ['_' => 'channelParticipantModerator', 'user_id' => int, 'inviter_id' => int, 'date' => int, ];
```
```

View File

@ -24,4 +24,5 @@ description: channelParticipantSelf attributes, type and example
```
$channelParticipantSelf = ['_' => 'channelParticipantSelf', 'user_id' => int, 'inviter_id' => int, 'date' => int, ];
```
```

View File

@ -17,4 +17,5 @@ description: channelParticipantsAdmins attributes, type and example
```
$channelParticipantsAdmins = ['_' => 'channelParticipantsAdmins', ];
```
```

View File

@ -17,4 +17,5 @@ description: channelParticipantsBots attributes, type and example
```
$channelParticipantsBots = ['_' => 'channelParticipantsBots', ];
```
```

View File

@ -17,4 +17,5 @@ description: channelParticipantsKicked attributes, type and example
```
$channelParticipantsKicked = ['_' => 'channelParticipantsKicked', ];
```
```

View File

@ -17,4 +17,5 @@ description: channelParticipantsRecent attributes, type and example
```
$channelParticipantsRecent = ['_' => 'channelParticipantsRecent', ];
```
```

View File

@ -17,4 +17,5 @@ description: channelRoleEditor attributes, type and example
```
$channelRoleEditor = ['_' => 'channelRoleEditor', ];
```
```

View File

@ -17,4 +17,5 @@ description: channelRoleEmpty attributes, type and example
```
$channelRoleEmpty = ['_' => 'channelRoleEmpty', ];
```
```

View File

@ -17,4 +17,5 @@ description: channelRoleModerator attributes, type and example
```
$channelRoleModerator = ['_' => 'channelRoleModerator', ];
```
```

View File

@ -23,4 +23,5 @@ description: channels_channelParticipant attributes, type and example
```
$channels_channelParticipant = ['_' => 'channels_channelParticipant', 'participant' => ChannelParticipant, 'users' => [Vector t], ];
```
```

View File

@ -24,4 +24,5 @@ description: channels_channelParticipants attributes, type and example
```
$channels_channelParticipants = ['_' => 'channels_channelParticipants', 'count' => int, 'participants' => [Vector t], 'users' => [Vector t], ];
```
```

View File

@ -34,4 +34,18 @@ description: chat attributes, type and example
```
$chat = ['_' => 'chat', 'creator' => true, 'kicked' => true, 'left' => true, 'admins_enabled' => true, 'admin' => true, 'deactivated' => true, 'id' => int, 'title' => string, 'photo' => ChatPhoto, 'participants_count' => int, 'date' => int, 'version' => int, 'migrated_to' => InputChannel, ];
```
The following syntaxes can also be used:
```
$chat = '@username'; // Username
$chat = 44700; // bot API id (users)
$chat = -492772765; // bot API id (chats)
$chat = -10038575794; // bot API id (channels)
$chat = 'user#44700'; // tg-cli style id (users)
$chat = 'chat#492772765'; // tg-cli style id (chats)
$chat = 'channel#38575794'; // tg-cli style id (channels)
```

View File

@ -22,4 +22,18 @@ description: chatEmpty attributes, type and example
```
$chatEmpty = ['_' => 'chatEmpty', 'id' => int, ];
```
The following syntaxes can also be used:
```
$chatEmpty = '@username'; // Username
$chatEmpty = 44700; // bot API id (users)
$chatEmpty = -492772765; // bot API id (chats)
$chatEmpty = -10038575794; // bot API id (channels)
$chatEmpty = 'user#44700'; // tg-cli style id (users)
$chatEmpty = 'chat#492772765'; // tg-cli style id (chats)
$chatEmpty = 'channel#38575794'; // tg-cli style id (channels)
```

View File

@ -23,4 +23,18 @@ description: chatForbidden attributes, type and example
```
$chatForbidden = ['_' => 'chatForbidden', 'id' => int, 'title' => string, ];
```
The following syntaxes can also be used:
```
$chatForbidden = '@username'; // Username
$chatForbidden = 44700; // bot API id (users)
$chatForbidden = -492772765; // bot API id (chats)
$chatForbidden = -10038575794; // bot API id (channels)
$chatForbidden = 'user#44700'; // tg-cli style id (users)
$chatForbidden = 'chat#492772765'; // tg-cli style id (chats)
$chatForbidden = 'channel#38575794'; // tg-cli style id (channels)
```

View File

@ -27,4 +27,5 @@ description: chatFull attributes, type and example
```
$chatFull = ['_' => 'chatFull', 'id' => int, 'participants' => ChatParticipants, 'chat_photo' => Photo, 'notify_settings' => PeerNotifySettings, 'exported_invite' => ExportedChatInvite, 'bot_info' => [Vector t], ];
```
```

View File

@ -29,4 +29,5 @@ description: chatInvite attributes, type and example
```
$chatInvite = ['_' => 'chatInvite', 'channel' => true, 'broadcast' => true, 'public' => true, 'megagroup' => true, 'title' => string, 'photo' => ChatPhoto, 'participants_count' => int, 'participants' => [Vector t], ];
```
```

View File

@ -22,4 +22,5 @@ description: chatInviteAlready attributes, type and example
```
$chatInviteAlready = ['_' => 'chatInviteAlready', 'chat' => Chat, ];
```
```

View File

@ -17,4 +17,5 @@ description: chatInviteEmpty attributes, type and example
```
$chatInviteEmpty = ['_' => 'chatInviteEmpty', ];
```
```

View File

@ -22,4 +22,5 @@ description: chatInviteExported attributes, type and example
```
$chatInviteExported = ['_' => 'chatInviteExported', 'link' => string, ];
```
```

View File

@ -24,4 +24,5 @@ description: chatParticipant attributes, type and example
```
$chatParticipant = ['_' => 'chatParticipant', 'user_id' => int, 'inviter_id' => int, 'date' => int, ];
```
```

View File

@ -24,4 +24,5 @@ description: chatParticipantAdmin attributes, type and example
```
$chatParticipantAdmin = ['_' => 'chatParticipantAdmin', 'user_id' => int, 'inviter_id' => int, 'date' => int, ];
```
```

View File

@ -22,4 +22,5 @@ description: chatParticipantCreator attributes, type and example
```
$chatParticipantCreator = ['_' => 'chatParticipantCreator', 'user_id' => int, ];
```
```

View File

@ -24,4 +24,5 @@ description: chatParticipants attributes, type and example
```
$chatParticipants = ['_' => 'chatParticipants', 'chat_id' => int, 'participants' => [Vector t], 'version' => int, ];
```
```

View File

@ -23,4 +23,5 @@ description: chatParticipantsForbidden attributes, type and example
```
$chatParticipantsForbidden = ['_' => 'chatParticipantsForbidden', 'chat_id' => int, 'self_participant' => ChatParticipant, ];
```
```

View File

@ -23,4 +23,5 @@ description: chatPhoto attributes, type and example
```
$chatPhoto = ['_' => 'chatPhoto', 'photo_small' => FileLocation, 'photo_big' => FileLocation, ];
```
```

View File

@ -17,4 +17,5 @@ description: chatPhotoEmpty attributes, type and example
```
$chatPhotoEmpty = ['_' => 'chatPhotoEmpty', ];
```
```

View File

@ -44,4 +44,5 @@ description: config attributes, type and example
```
$config = ['_' => 'config', 'date' => int, 'expires' => int, 'test_mode' => Bool, 'this_dc' => int, 'dc_options' => [Vector t], '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' => [Vector t], ];
```
```

View File

@ -23,4 +23,5 @@ description: contact attributes, type and example
```
$contact = ['_' => 'contact', 'user_id' => int, 'mutual' => Bool, ];
```
```

View File

@ -23,4 +23,5 @@ description: contactBlocked attributes, type and example
```
$contactBlocked = ['_' => 'contactBlocked', 'user_id' => int, 'date' => int, ];
```
```

View File

@ -17,4 +17,5 @@ description: contactLinkContact attributes, type and example
```
$contactLinkContact = ['_' => 'contactLinkContact', ];
```
```

View File

@ -17,4 +17,5 @@ description: contactLinkHasPhone attributes, type and example
```
$contactLinkHasPhone = ['_' => 'contactLinkHasPhone', ];
```
```

View File

@ -17,4 +17,5 @@ description: contactLinkNone attributes, type and example
```
$contactLinkNone = ['_' => 'contactLinkNone', ];
```
```

View File

@ -17,4 +17,5 @@ description: contactLinkUnknown attributes, type and example
```
$contactLinkUnknown = ['_' => 'contactLinkUnknown', ];
```
```

View File

@ -23,4 +23,5 @@ description: contactStatus attributes, type and example
```
$contactStatus = ['_' => 'contactStatus', 'user_id' => int, 'status' => UserStatus, ];
```
```

View File

@ -23,4 +23,5 @@ description: contacts_blocked attributes, type and example
```
$contacts_blocked = ['_' => 'contacts_blocked', 'blocked' => [Vector t], 'users' => [Vector t], ];
```
```

View File

@ -24,4 +24,5 @@ description: contacts_blockedSlice attributes, type and example
```
$contacts_blockedSlice = ['_' => 'contacts_blockedSlice', 'count' => int, 'blocked' => [Vector t], 'users' => [Vector t], ];
```
```

View File

@ -23,4 +23,5 @@ description: contacts_contacts attributes, type and example
```
$contacts_contacts = ['_' => 'contacts_contacts', 'contacts' => [Vector t], 'users' => [Vector t], ];
```
```

View File

@ -17,4 +17,5 @@ description: contacts_contactsNotModified attributes, type and example
```
$contacts_contactsNotModified = ['_' => 'contacts_contactsNotModified', ];
```
```

View File

@ -24,4 +24,5 @@ description: contacts_found attributes, type and example
```
$contacts_found = ['_' => 'contacts_found', 'results' => [Vector t], 'chats' => [Vector t], 'users' => [Vector t], ];
```
```

View File

@ -24,4 +24,5 @@ description: contacts_importedContacts attributes, type and example
```
$contacts_importedContacts = ['_' => 'contacts_importedContacts', 'imported' => [Vector t], 'retry_contacts' => [Vector t], 'users' => [Vector t], ];
```
```

View File

@ -24,4 +24,5 @@ description: contacts_link attributes, type and example
```
$contacts_link = ['_' => 'contacts_link', 'my_link' => ContactLink, 'foreign_link' => ContactLink, 'user' => User, ];
```
```

View File

@ -24,4 +24,5 @@ description: contacts_resolvedPeer attributes, type and example
```
$contacts_resolvedPeer = ['_' => 'contacts_resolvedPeer', 'peer' => Peer, 'chats' => [Vector t], 'users' => [Vector t], ];
```
```

View File

@ -24,4 +24,5 @@ description: contacts_topPeers attributes, type and example
```
$contacts_topPeers = ['_' => 'contacts_topPeers', 'categories' => [Vector t], 'chats' => [Vector t], 'users' => [Vector t], ];
```
```

View File

@ -17,4 +17,5 @@ description: contacts_topPeersNotModified attributes, type and example
```
$contacts_topPeersNotModified = ['_' => 'contacts_topPeersNotModified', ];
```
```

View File

@ -27,4 +27,5 @@ description: dcOption attributes, type and example
```
$dcOption = ['_' => 'dcOption', 'ipv6' => true, 'media_only' => true, 'tcpo_only' => true, 'id' => int, 'ip_address' => string, 'port' => int, ];
```
```

View File

@ -29,4 +29,5 @@ description: dialog attributes, type and example
```
$dialog = ['_' => 'dialog', 'peer' => Peer, 'top_message' => int, 'read_inbox_max_id' => int, 'read_outbox_max_id' => int, 'unread_count' => int, 'notify_settings' => PeerNotifySettings, 'pts' => int, 'draft' => DraftMessage, ];
```
```

View File

@ -23,4 +23,5 @@ description: disabledFeature attributes, type and example
```
$disabledFeature = ['_' => 'disabledFeature', 'feature' => string, 'description' => string, ];
```
```

View File

@ -30,4 +30,5 @@ description: document attributes, type and example
```
$document = ['_' => 'document', 'id' => long, 'access_hash' => long, 'date' => int, 'mime_type' => string, 'size' => int, 'thumb' => PhotoSize, 'dc_id' => int, 'version' => int, 'attributes' => [Vector t], ];
```
```

View File

@ -17,4 +17,5 @@ description: documentAttributeAnimated attributes, type and example
```
$documentAttributeAnimated = ['_' => 'documentAttributeAnimated', ];
```
```

View File

@ -26,4 +26,5 @@ description: documentAttributeAudio attributes, type and example
```
$documentAttributeAudio = ['_' => 'documentAttributeAudio', 'voice' => true, 'duration' => int, 'title' => string, 'performer' => string, 'waveform' => bytes, ];
```
```

View File

@ -22,4 +22,5 @@ description: documentAttributeFilename attributes, type and example
```
$documentAttributeFilename = ['_' => 'documentAttributeFilename', 'file_name' => string, ];
```
```

View File

@ -17,4 +17,5 @@ description: documentAttributeHasStickers attributes, type and example
```
$documentAttributeHasStickers = ['_' => 'documentAttributeHasStickers', ];
```
```

View File

@ -23,4 +23,5 @@ description: documentAttributeImageSize attributes, type and example
```
$documentAttributeImageSize = ['_' => 'documentAttributeImageSize', 'w' => int, 'h' => int, ];
```
```

View File

@ -25,4 +25,5 @@ description: documentAttributeSticker attributes, type and example
```
$documentAttributeSticker = ['_' => 'documentAttributeSticker', 'mask' => true, 'alt' => string, 'stickerset' => InputStickerSet, 'mask_coords' => MaskCoords, ];
```
```

View File

@ -24,4 +24,5 @@ description: documentAttributeVideo attributes, type and example
```
$documentAttributeVideo = ['_' => 'documentAttributeVideo', 'duration' => int, 'w' => int, 'h' => int, ];
```
```

View File

@ -22,4 +22,5 @@ description: documentEmpty attributes, type and example
```
$documentEmpty = ['_' => 'documentEmpty', 'id' => long, ];
```
```

View File

@ -26,4 +26,5 @@ description: draftMessage attributes, type and example
```
$draftMessage = ['_' => 'draftMessage', 'no_webpage' => true, 'reply_to_msg_id' => int, 'message' => string, 'entities' => [Vector t], 'date' => int, ];
```
```

View File

@ -17,4 +17,5 @@ description: draftMessageEmpty attributes, type and example
```
$draftMessageEmpty = ['_' => 'draftMessageEmpty', ];
```
```

View File

@ -28,4 +28,5 @@ description: encryptedChat attributes, type and example
```
$encryptedChat = ['_' => 'encryptedChat', 'id' => int, 'access_hash' => long, 'date' => int, 'admin_id' => int, 'participant_id' => int, 'g_a_or_b' => bytes, 'key_fingerprint' => long, ];
```
```

View File

@ -22,4 +22,5 @@ description: encryptedChatDiscarded attributes, type and example
```
$encryptedChatDiscarded = ['_' => 'encryptedChatDiscarded', 'id' => int, ];
```
```

Some files were not shown because too many files have changed in this diff Show More