From da3160351138eec872ec2f840f6bd51c99fde17e Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Fri, 29 Jun 2018 14:17:30 +0200 Subject: [PATCH] Update docs to layer 82 --- .../botInlineMessageMediaContact.md | 7 +++-- docs/API_docs/constructors/config.md | 14 ++++++++-- docs/API_docs/constructors/dialog.md | 7 +++-- .../constructors/draftMessageEmpty.md | 11 ++++++-- docs/API_docs/constructors/geoPoint.md | 7 +++-- docs/API_docs/constructors/index.md | 28 +++++++++++++------ .../inputBotInlineMessageMediaContact.md | 7 +++-- .../constructors/inputMediaContact.md | 7 +++-- .../constructors/messageMediaContact.md | 7 +++-- docs/API_docs/constructors/webDocument.md | 7 ++--- docs/API_docs/index.md | 6 ++-- docs/API_docs/methods/api_index.md | 8 +++++- docs/API_docs/methods/index.md | 6 ++++ docs/API_docs/methods/messages_getDialogs.md | 7 +++-- docs/API_docs/types/DialogPeer.md | 2 ++ docs/API_docs/types/InputWebFileLocation.md | 2 ++ docs/API_docs/types/Update.md | 2 ++ docs/API_docs/types/contacts_TopPeers.md | 2 ++ docs/API_docs/types/messages_Dialogs.md | 2 ++ old_docs/README.md | 2 +- 20 files changed, 97 insertions(+), 44 deletions(-) diff --git a/docs/API_docs/constructors/botInlineMessageMediaContact.md b/docs/API_docs/constructors/botInlineMessageMediaContact.md index c3f25947..eb2c1635 100644 --- a/docs/API_docs/constructors/botInlineMessageMediaContact.md +++ b/docs/API_docs/constructors/botInlineMessageMediaContact.md @@ -15,6 +15,7 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png |phone\_number|[string](../types/string.md) | Yes| |first\_name|[string](../types/string.md) | Yes| |last\_name|[string](../types/string.md) | Yes| +|vcard|[string](../types/string.md) | Yes| |reply\_markup|[ReplyMarkup](../types/ReplyMarkup.md) | Optional| @@ -25,13 +26,13 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png ### Example: ``` -$botInlineMessageMediaContact = ['_' => 'botInlineMessageMediaContact', 'phone_number' => 'string', 'first_name' => 'string', 'last_name' => 'string', 'reply_markup' => ReplyMarkup]; +$botInlineMessageMediaContact = ['_' => 'botInlineMessageMediaContact', 'phone_number' => 'string', 'first_name' => 'string', 'last_name' => 'string', 'vcard' => 'string', 'reply_markup' => ReplyMarkup]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: ``` -{"_": "botInlineMessageMediaContact", "phone_number": "string", "first_name": "string", "last_name": "string", "reply_markup": ReplyMarkup} +{"_": "botInlineMessageMediaContact", "phone_number": "string", "first_name": "string", "last_name": "string", "vcard": "string", "reply_markup": ReplyMarkup} ``` @@ -39,7 +40,7 @@ Or, if you're into Lua: ``` -botInlineMessageMediaContact={_='botInlineMessageMediaContact', phone_number='string', first_name='string', last_name='string', reply_markup=ReplyMarkup} +botInlineMessageMediaContact={_='botInlineMessageMediaContact', phone_number='string', first_name='string', last_name='string', vcard='string', reply_markup=ReplyMarkup} ``` diff --git a/docs/API_docs/constructors/config.md b/docs/API_docs/constructors/config.md index a2a888b6..653fcf78 100644 --- a/docs/API_docs/constructors/config.md +++ b/docs/API_docs/constructors/config.md @@ -23,6 +23,7 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png |test\_mode|[Bool](../types/Bool.md) | Yes| |this\_dc|[int](../types/int.md) | Yes| |dc\_options|Array of [DcOption](../types/DcOption.md) | Yes| +|dc\_txt\_domain\_name|[string](../types/string.md) | Yes| |chat\_size\_max|[int](../types/int.md) | Yes| |megagroup\_size\_max|[int](../types/int.md) | Yes| |forwarded\_count\_max|[int](../types/int.md) | Yes| @@ -50,6 +51,13 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png |call\_packet\_timeout\_ms|[int](../types/int.md) | Yes| |me\_url\_prefix|[string](../types/string.md) | Yes| |autoupdate\_url\_prefix|[string](../types/string.md) | Optional| +|gif\_search\_username|[string](../types/string.md) | Optional| +|venue\_search\_username|[string](../types/string.md) | Optional| +|img\_search\_username|[string](../types/string.md) | Optional| +|static\_maps\_provider|[string](../types/string.md) | Optional| +|caption\_length\_max|[int](../types/int.md) | Yes| +|message\_length\_max|[int](../types/int.md) | Yes| +|webfile\_dc\_id|[int](../types/int.md) | Yes| |suggested\_lang\_code|[string](../types/string.md) | Optional| |lang\_pack\_version|[int](../types/int.md) | Optional| @@ -61,13 +69,13 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png ### Example: ``` -$config = ['_' => 'config', 'phonecalls_enabled' => Bool, 'default_p2p_contacts' => Bool, 'preload_featured_stickers' => Bool, 'ignore_phone_entities' => Bool, 'revoke_pm_inbox' => Bool, 'blocked_mode' => 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, 'push_chat_period_ms' => int, 'push_chat_limit' => int, 'saved_gifs_limit' => int, 'edit_time_limit' => int, 'revoke_time_limit' => int, 'revoke_pm_time_limit' => int, 'rating_e_decay' => int, 'stickers_recent_limit' => int, 'stickers_faved_limit' => int, 'channels_read_media_period' => int, 'tmp_sessions' => int, 'pinned_dialogs_count_max' => int, 'call_receive_timeout_ms' => int, 'call_ring_timeout_ms' => int, 'call_connect_timeout_ms' => int, 'call_packet_timeout_ms' => int, 'me_url_prefix' => 'string', 'autoupdate_url_prefix' => 'string', 'suggested_lang_code' => 'string', 'lang_pack_version' => int]; +$config = ['_' => 'config', 'phonecalls_enabled' => Bool, 'default_p2p_contacts' => Bool, 'preload_featured_stickers' => Bool, 'ignore_phone_entities' => Bool, 'revoke_pm_inbox' => Bool, 'blocked_mode' => Bool, 'date' => int, 'expires' => int, 'test_mode' => Bool, 'this_dc' => int, 'dc_options' => [DcOption, DcOption], 'dc_txt_domain_name' => 'string', 'chat_size_max' => int, 'megagroup_size_max' => int, 'forwarded_count_max' => int, 'online_update_period_ms' => int, 'offline_blur_timeout_ms' => int, 'offline_idle_timeout_ms' => int, 'online_cloud_timeout_ms' => int, 'notify_cloud_delay_ms' => int, 'notify_default_delay_ms' => int, 'push_chat_period_ms' => int, 'push_chat_limit' => int, 'saved_gifs_limit' => int, 'edit_time_limit' => int, 'revoke_time_limit' => int, 'revoke_pm_time_limit' => int, 'rating_e_decay' => int, 'stickers_recent_limit' => int, 'stickers_faved_limit' => int, 'channels_read_media_period' => int, 'tmp_sessions' => int, 'pinned_dialogs_count_max' => int, 'call_receive_timeout_ms' => int, 'call_ring_timeout_ms' => int, 'call_connect_timeout_ms' => int, 'call_packet_timeout_ms' => int, 'me_url_prefix' => 'string', 'autoupdate_url_prefix' => 'string', 'gif_search_username' => 'string', 'venue_search_username' => 'string', 'img_search_username' => 'string', 'static_maps_provider' => 'string', 'caption_length_max' => int, 'message_length_max' => int, 'webfile_dc_id' => int, 'suggested_lang_code' => 'string', 'lang_pack_version' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: ``` -{"_": "config", "phonecalls_enabled": Bool, "default_p2p_contacts": Bool, "preload_featured_stickers": Bool, "ignore_phone_entities": Bool, "revoke_pm_inbox": Bool, "blocked_mode": Bool, "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, "push_chat_period_ms": int, "push_chat_limit": int, "saved_gifs_limit": int, "edit_time_limit": int, "revoke_time_limit": int, "revoke_pm_time_limit": int, "rating_e_decay": int, "stickers_recent_limit": int, "stickers_faved_limit": int, "channels_read_media_period": int, "tmp_sessions": int, "pinned_dialogs_count_max": int, "call_receive_timeout_ms": int, "call_ring_timeout_ms": int, "call_connect_timeout_ms": int, "call_packet_timeout_ms": int, "me_url_prefix": "string", "autoupdate_url_prefix": "string", "suggested_lang_code": "string", "lang_pack_version": int} +{"_": "config", "phonecalls_enabled": Bool, "default_p2p_contacts": Bool, "preload_featured_stickers": Bool, "ignore_phone_entities": Bool, "revoke_pm_inbox": Bool, "blocked_mode": Bool, "date": int, "expires": int, "test_mode": Bool, "this_dc": int, "dc_options": [DcOption], "dc_txt_domain_name": "string", "chat_size_max": int, "megagroup_size_max": int, "forwarded_count_max": int, "online_update_period_ms": int, "offline_blur_timeout_ms": int, "offline_idle_timeout_ms": int, "online_cloud_timeout_ms": int, "notify_cloud_delay_ms": int, "notify_default_delay_ms": int, "push_chat_period_ms": int, "push_chat_limit": int, "saved_gifs_limit": int, "edit_time_limit": int, "revoke_time_limit": int, "revoke_pm_time_limit": int, "rating_e_decay": int, "stickers_recent_limit": int, "stickers_faved_limit": int, "channels_read_media_period": int, "tmp_sessions": int, "pinned_dialogs_count_max": int, "call_receive_timeout_ms": int, "call_ring_timeout_ms": int, "call_connect_timeout_ms": int, "call_packet_timeout_ms": int, "me_url_prefix": "string", "autoupdate_url_prefix": "string", "gif_search_username": "string", "venue_search_username": "string", "img_search_username": "string", "static_maps_provider": "string", "caption_length_max": int, "message_length_max": int, "webfile_dc_id": int, "suggested_lang_code": "string", "lang_pack_version": int} ``` @@ -75,7 +83,7 @@ Or, if you're into Lua: ``` -config={_='config', phonecalls_enabled=Bool, default_p2p_contacts=Bool, preload_featured_stickers=Bool, ignore_phone_entities=Bool, revoke_pm_inbox=Bool, blocked_mode=Bool, 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, push_chat_period_ms=int, push_chat_limit=int, saved_gifs_limit=int, edit_time_limit=int, revoke_time_limit=int, revoke_pm_time_limit=int, rating_e_decay=int, stickers_recent_limit=int, stickers_faved_limit=int, channels_read_media_period=int, tmp_sessions=int, pinned_dialogs_count_max=int, call_receive_timeout_ms=int, call_ring_timeout_ms=int, call_connect_timeout_ms=int, call_packet_timeout_ms=int, me_url_prefix='string', autoupdate_url_prefix='string', suggested_lang_code='string', lang_pack_version=int} +config={_='config', phonecalls_enabled=Bool, default_p2p_contacts=Bool, preload_featured_stickers=Bool, ignore_phone_entities=Bool, revoke_pm_inbox=Bool, blocked_mode=Bool, date=int, expires=int, test_mode=Bool, this_dc=int, dc_options={DcOption}, dc_txt_domain_name='string', chat_size_max=int, megagroup_size_max=int, forwarded_count_max=int, online_update_period_ms=int, offline_blur_timeout_ms=int, offline_idle_timeout_ms=int, online_cloud_timeout_ms=int, notify_cloud_delay_ms=int, notify_default_delay_ms=int, push_chat_period_ms=int, push_chat_limit=int, saved_gifs_limit=int, edit_time_limit=int, revoke_time_limit=int, revoke_pm_time_limit=int, rating_e_decay=int, stickers_recent_limit=int, stickers_faved_limit=int, channels_read_media_period=int, tmp_sessions=int, pinned_dialogs_count_max=int, call_receive_timeout_ms=int, call_ring_timeout_ms=int, call_connect_timeout_ms=int, call_packet_timeout_ms=int, me_url_prefix='string', autoupdate_url_prefix='string', gif_search_username='string', venue_search_username='string', img_search_username='string', static_maps_provider='string', caption_length_max=int, message_length_max=int, webfile_dc_id=int, suggested_lang_code='string', lang_pack_version=int} ``` diff --git a/docs/API_docs/constructors/dialog.md b/docs/API_docs/constructors/dialog.md index f5f7686e..00e2065a 100644 --- a/docs/API_docs/constructors/dialog.md +++ b/docs/API_docs/constructors/dialog.md @@ -13,6 +13,7 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png | Name | Type | Required | |----------|---------------|----------| |pinned|[Bool](../types/Bool.md) | Optional| +|unread\_mark|[Bool](../types/Bool.md) | Optional| |peer|[Peer](../types/Peer.md) | Yes| |top\_message|[int](../types/int.md) | Yes| |read\_inbox\_max\_id|[int](../types/int.md) | Yes| @@ -31,13 +32,13 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png ### Example: ``` -$dialog = ['_' => 'dialog', 'pinned' => Bool, 'peer' => Peer, 'top_message' => int, 'read_inbox_max_id' => int, 'read_outbox_max_id' => int, 'unread_count' => int, 'unread_mentions_count' => int, 'notify_settings' => PeerNotifySettings, 'pts' => int, 'draft' => DraftMessage]; +$dialog = ['_' => 'dialog', 'pinned' => Bool, 'unread_mark' => Bool, 'peer' => Peer, 'top_message' => int, 'read_inbox_max_id' => int, 'read_outbox_max_id' => int, 'unread_count' => int, 'unread_mentions_count' => int, 'notify_settings' => PeerNotifySettings, 'pts' => int, 'draft' => DraftMessage]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: ``` -{"_": "dialog", "pinned": Bool, "peer": Peer, "top_message": int, "read_inbox_max_id": int, "read_outbox_max_id": int, "unread_count": int, "unread_mentions_count": int, "notify_settings": PeerNotifySettings, "pts": int, "draft": DraftMessage} +{"_": "dialog", "pinned": Bool, "unread_mark": Bool, "peer": Peer, "top_message": int, "read_inbox_max_id": int, "read_outbox_max_id": int, "unread_count": int, "unread_mentions_count": int, "notify_settings": PeerNotifySettings, "pts": int, "draft": DraftMessage} ``` @@ -45,7 +46,7 @@ Or, if you're into Lua: ``` -dialog={_='dialog', pinned=Bool, peer=Peer, top_message=int, read_inbox_max_id=int, read_outbox_max_id=int, unread_count=int, unread_mentions_count=int, notify_settings=PeerNotifySettings, pts=int, draft=DraftMessage} +dialog={_='dialog', pinned=Bool, unread_mark=Bool, peer=Peer, top_message=int, read_inbox_max_id=int, read_outbox_max_id=int, unread_count=int, unread_mentions_count=int, notify_settings=PeerNotifySettings, pts=int, draft=DraftMessage} ``` diff --git a/docs/API_docs/constructors/draftMessageEmpty.md b/docs/API_docs/constructors/draftMessageEmpty.md index 15b2aa67..a4136812 100644 --- a/docs/API_docs/constructors/draftMessageEmpty.md +++ b/docs/API_docs/constructors/draftMessageEmpty.md @@ -8,6 +8,11 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png +### Attributes: + +| Name | Type | Required | +|----------|---------------|----------| +|date|[int](../types/int.md) | Optional| @@ -17,13 +22,13 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png ### Example: ``` -$draftMessageEmpty = ['_' => 'draftMessageEmpty']; +$draftMessageEmpty = ['_' => 'draftMessageEmpty', 'date' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: ``` -{"_": "draftMessageEmpty"} +{"_": "draftMessageEmpty", "date": int} ``` @@ -31,7 +36,7 @@ Or, if you're into Lua: ``` -draftMessageEmpty={_='draftMessageEmpty'} +draftMessageEmpty={_='draftMessageEmpty', date=int} ``` diff --git a/docs/API_docs/constructors/geoPoint.md b/docs/API_docs/constructors/geoPoint.md index b932e64a..ddfe4940 100644 --- a/docs/API_docs/constructors/geoPoint.md +++ b/docs/API_docs/constructors/geoPoint.md @@ -14,6 +14,7 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png |----------|---------------|----------| |long|[double](../types/double.md) | Yes| |lat|[double](../types/double.md) | Yes| +|access\_hash|[long](../types/long.md) | Yes| @@ -23,13 +24,13 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png ### Example: ``` -$geoPoint = ['_' => 'geoPoint', 'long' => double, 'lat' => double]; +$geoPoint = ['_' => 'geoPoint', 'long' => double, 'lat' => double, 'access_hash' => long]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: ``` -{"_": "geoPoint", "long": double, "lat": double} +{"_": "geoPoint", "long": double, "lat": double, "access_hash": long} ``` @@ -37,7 +38,7 @@ Or, if you're into Lua: ``` -geoPoint={_='geoPoint', long=double, lat=double} +geoPoint={_='geoPoint', long=double, lat=double, access_hash=long} ``` diff --git a/docs/API_docs/constructors/index.md b/docs/API_docs/constructors/index.md index ba639187..8b4158fe 100644 --- a/docs/API_docs/constructors/index.md +++ b/docs/API_docs/constructors/index.md @@ -82,7 +82,7 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png

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

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

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

[$botInlineMessageMediaGeo](../constructors/botInlineMessageMediaGeo.md) = \['geo' => [GeoPoint](../types/GeoPoint.md), 'period' => [int](../types/int.md), 'reply_markup' => [ReplyMarkup](../types/ReplyMarkup.md), \]; @@ -265,7 +265,7 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png

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

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

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

[$contact](../constructors/contact.md) = \['user_id' => [int](../types/int.md), 'mutual' => [Bool](../types/Bool.md), \]; @@ -307,6 +307,8 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png [$contacts\_topPeers](../constructors/contacts_topPeers.md) = \['categories' => \[[TopPeerCategoryPeers](../types/TopPeerCategoryPeers.md)\], 'chats' => \[[Chat](../types/Chat.md)\], 'users' => \[[User](../types/User.md)\], \]; +[$contacts\_topPeersDisabled](../constructors/contacts_topPeersDisabled.md) = \[\]; + [$contacts\_topPeersNotModified](../constructors/contacts_topPeersNotModified.md) = \[\]; *** @@ -397,7 +399,7 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png

[$decryptedMessageService\_17](../constructors/decryptedMessageService_17.md) = \['action' => [DecryptedMessageAction](../types/DecryptedMessageAction.md), \]; *** -

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

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

[$dialogPeer](../constructors/dialogPeer.md) = \['peer' => [Peer](../types/Peer.md), \]; @@ -433,7 +435,7 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png

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

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

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

[$encryptedChat](../constructors/encryptedChat.md) = \['id' => [int](../types/int.md), 'access_hash' => [long](../types/long.md), 'date' => [int](../types/int.md), 'admin_id' => [int](../types/int.md), 'participant_id' => [int](../types/int.md), 'g_a_or_b' => [bytes](../types/bytes.md), 'key_fingerprint' => [long](../types/long.md), \]; @@ -487,7 +489,7 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png

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

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

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

[$geoPointEmpty](../constructors/geoPointEmpty.md) = \[\]; @@ -541,7 +543,7 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png

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

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

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

[$inputBotInlineMessageMediaGeo](../constructors/inputBotInlineMessageMediaGeo.md) = \['geo_point' => [InputGeoPoint](../types/InputGeoPoint.md), 'period' => [int](../types/int.md), 'reply_markup' => [ReplyMarkup](../types/ReplyMarkup.md), \]; @@ -634,7 +636,7 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png

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

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

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

[$inputMediaDocument](../constructors/inputMediaDocument.md) = \['id' => [InputDocument](../types/InputDocument.md), 'ttl_seconds' => [int](../types/int.md), \]; @@ -873,6 +875,9 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png ***

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

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

[$inputWebFileLocation](../constructors/inputWebFileLocation.md) = \['url' => [string](../types/string.md), 'access_hash' => [long](../types/long.md), \]; @@ -1051,7 +1056,7 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png

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

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

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

[$messageMediaDocument](../constructors/messageMediaDocument.md) = \['document' => [Document](../types/Document.md), 'ttl_seconds' => [int](../types/int.md), \]; @@ -1118,6 +1123,8 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png [$messages\_dialogs](../constructors/messages_dialogs.md) = \['dialogs' => \[[Dialog](../types/Dialog.md)\], 'messages' => \[[Message](../types/Message.md)\], 'chats' => \[[Chat](../types/Chat.md)\], 'users' => \[[User](../types/User.md)\], \]; +[$messages\_dialogsNotModified](../constructors/messages_dialogsNotModified.md) = \['count' => [int](../types/int.md), \]; + [$messages\_dialogsSlice](../constructors/messages_dialogsSlice.md) = \['count' => [int](../types/int.md), 'dialogs' => \[[Dialog](../types/Dialog.md)\], 'messages' => \[[Message](../types/Message.md)\], 'chats' => \[[Chat](../types/Chat.md)\], 'users' => \[[User](../types/User.md)\], \]; [$messages\_favedStickers](../constructors/messages_favedStickers.md) = \['hash' => [int](../types/int.md), 'packs' => \[[StickerPack](../types/StickerPack.md)\], 'stickers' => \[[Document](../types/Document.md)\], \]; @@ -1722,6 +1729,9 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png ***

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

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

[$updateDraftMessage](../constructors/updateDraftMessage.md) = \['peer' => [Peer](../types/Peer.md), 'draft' => [DraftMessage](../types/DraftMessage.md), \]; @@ -1928,7 +1938,7 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png

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

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

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

[$webDocumentNoProxy](../constructors/webDocumentNoProxy.md) = \['url' => [string](../types/string.md), 'size' => [int](../types/int.md), 'mime_type' => [string](../types/string.md), 'attributes' => \[[DocumentAttribute](../types/DocumentAttribute.md)\], \]; diff --git a/docs/API_docs/constructors/inputBotInlineMessageMediaContact.md b/docs/API_docs/constructors/inputBotInlineMessageMediaContact.md index 5b78709f..84d977f6 100644 --- a/docs/API_docs/constructors/inputBotInlineMessageMediaContact.md +++ b/docs/API_docs/constructors/inputBotInlineMessageMediaContact.md @@ -15,6 +15,7 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png |phone\_number|[string](../types/string.md) | Yes| |first\_name|[string](../types/string.md) | Yes| |last\_name|[string](../types/string.md) | Yes| +|vcard|[string](../types/string.md) | Yes| |reply\_markup|[ReplyMarkup](../types/ReplyMarkup.md) | Optional| @@ -25,13 +26,13 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png ### Example: ``` -$inputBotInlineMessageMediaContact = ['_' => 'inputBotInlineMessageMediaContact', 'phone_number' => 'string', 'first_name' => 'string', 'last_name' => 'string', 'reply_markup' => ReplyMarkup]; +$inputBotInlineMessageMediaContact = ['_' => 'inputBotInlineMessageMediaContact', 'phone_number' => 'string', 'first_name' => 'string', 'last_name' => 'string', 'vcard' => 'string', 'reply_markup' => ReplyMarkup]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: ``` -{"_": "inputBotInlineMessageMediaContact", "phone_number": "string", "first_name": "string", "last_name": "string", "reply_markup": ReplyMarkup} +{"_": "inputBotInlineMessageMediaContact", "phone_number": "string", "first_name": "string", "last_name": "string", "vcard": "string", "reply_markup": ReplyMarkup} ``` @@ -39,7 +40,7 @@ Or, if you're into Lua: ``` -inputBotInlineMessageMediaContact={_='inputBotInlineMessageMediaContact', phone_number='string', first_name='string', last_name='string', reply_markup=ReplyMarkup} +inputBotInlineMessageMediaContact={_='inputBotInlineMessageMediaContact', phone_number='string', first_name='string', last_name='string', vcard='string', reply_markup=ReplyMarkup} ``` diff --git a/docs/API_docs/constructors/inputMediaContact.md b/docs/API_docs/constructors/inputMediaContact.md index 3dcee4c1..b5270ffa 100644 --- a/docs/API_docs/constructors/inputMediaContact.md +++ b/docs/API_docs/constructors/inputMediaContact.md @@ -15,6 +15,7 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png |phone\_number|[string](../types/string.md) | Yes| |first\_name|[string](../types/string.md) | Yes| |last\_name|[string](../types/string.md) | Yes| +|vcard|[string](../types/string.md) | Yes| @@ -24,13 +25,13 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png ### Example: ``` -$inputMediaContact = ['_' => 'inputMediaContact', 'phone_number' => 'string', 'first_name' => 'string', 'last_name' => 'string']; +$inputMediaContact = ['_' => 'inputMediaContact', 'phone_number' => 'string', 'first_name' => 'string', 'last_name' => 'string', 'vcard' => 'string']; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: ``` -{"_": "inputMediaContact", "phone_number": "string", "first_name": "string", "last_name": "string"} +{"_": "inputMediaContact", "phone_number": "string", "first_name": "string", "last_name": "string", "vcard": "string"} ``` @@ -38,7 +39,7 @@ Or, if you're into Lua: ``` -inputMediaContact={_='inputMediaContact', phone_number='string', first_name='string', last_name='string'} +inputMediaContact={_='inputMediaContact', phone_number='string', first_name='string', last_name='string', vcard='string'} ``` diff --git a/docs/API_docs/constructors/messageMediaContact.md b/docs/API_docs/constructors/messageMediaContact.md index a426d993..20079446 100644 --- a/docs/API_docs/constructors/messageMediaContact.md +++ b/docs/API_docs/constructors/messageMediaContact.md @@ -15,6 +15,7 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png |phone\_number|[string](../types/string.md) | Yes| |first\_name|[string](../types/string.md) | Yes| |last\_name|[string](../types/string.md) | Yes| +|vcard|[string](../types/string.md) | Yes| |user\_id|[int](../types/int.md) | Yes| @@ -25,13 +26,13 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png ### Example: ``` -$messageMediaContact = ['_' => 'messageMediaContact', 'phone_number' => 'string', 'first_name' => 'string', 'last_name' => 'string', 'user_id' => int]; +$messageMediaContact = ['_' => 'messageMediaContact', 'phone_number' => 'string', 'first_name' => 'string', 'last_name' => 'string', 'vcard' => 'string', 'user_id' => int]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: ``` -{"_": "messageMediaContact", "phone_number": "string", "first_name": "string", "last_name": "string", "user_id": int} +{"_": "messageMediaContact", "phone_number": "string", "first_name": "string", "last_name": "string", "vcard": "string", "user_id": int} ``` @@ -39,7 +40,7 @@ Or, if you're into Lua: ``` -messageMediaContact={_='messageMediaContact', phone_number='string', first_name='string', last_name='string', user_id=int} +messageMediaContact={_='messageMediaContact', phone_number='string', first_name='string', last_name='string', vcard='string', user_id=int} ``` diff --git a/docs/API_docs/constructors/webDocument.md b/docs/API_docs/constructors/webDocument.md index 064367a3..692c6d49 100644 --- a/docs/API_docs/constructors/webDocument.md +++ b/docs/API_docs/constructors/webDocument.md @@ -17,7 +17,6 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png |size|[int](../types/int.md) | Yes| |mime\_type|[string](../types/string.md) | Yes| |attributes|Array of [DocumentAttribute](../types/DocumentAttribute.md) | Yes| -|dc\_id|[int](../types/int.md) | Yes| @@ -27,13 +26,13 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png ### Example: ``` -$webDocument = ['_' => 'webDocument', 'url' => 'string', 'access_hash' => long, 'size' => int, 'mime_type' => 'string', 'attributes' => [DocumentAttribute, DocumentAttribute], 'dc_id' => int]; +$webDocument = ['_' => 'webDocument', 'url' => 'string', 'access_hash' => long, 'size' => int, 'mime_type' => 'string', 'attributes' => [DocumentAttribute, DocumentAttribute]]; ``` [PWRTelegram](https://pwrtelegram.xyz) json-encoded version: ``` -{"_": "webDocument", "url": "string", "access_hash": long, "size": int, "mime_type": "string", "attributes": [DocumentAttribute], "dc_id": int} +{"_": "webDocument", "url": "string", "access_hash": long, "size": int, "mime_type": "string", "attributes": [DocumentAttribute]} ``` @@ -41,7 +40,7 @@ Or, if you're into Lua: ``` -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}} ``` diff --git a/docs/API_docs/index.md b/docs/API_docs/index.md index b58a1631..2f447503 100644 --- a/docs/API_docs/index.md +++ b/docs/API_docs/index.md @@ -1,9 +1,9 @@ --- -title: MadelineProto API documentation (layer 81) -description: MadelineProto API documentation (layer 81) +title: MadelineProto API documentation (layer 82) +description: MadelineProto API documentation (layer 82) image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png --- -# MadelineProto API documentation (layer 81) +# MadelineProto API documentation (layer 82) [Back to main documentation](..) diff --git a/docs/API_docs/methods/api_index.md b/docs/API_docs/methods/api_index.md index a3fb8948..3c81ee6a 100644 --- a/docs/API_docs/methods/api_index.md +++ b/docs/API_docs/methods/api_index.md @@ -258,6 +258,8 @@ $MadelineProto->[contacts->resolveUsername](contacts_resolveUsername.md)(\['user $MadelineProto->[contacts->search](contacts_search.md)(\['q' => [string](../types/string.md), 'limit' => [int](../types/int.md), \]) === [$contacts\_Found](../types/contacts_Found.md) +$MadelineProto->[contacts->toggleTopPeers](contacts_toggleTopPeers.md)(\['enabled' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md) + $MadelineProto->[contacts->unblock](contacts_unblock.md)(\['id' => [InputUser](../types/InputUser.md), \]) === [$Bool](../types/Bool.md) *** @@ -382,7 +384,9 @@ $MadelineProto->[messages->getCommonChats](messages_getCommonChats.md)(\['user_i $MadelineProto->[messages->getDhConfig](messages_getDhConfig.md)(\['version' => [int](../types/int.md), 'random_length' => [int](../types/int.md), \]) === [$messages\_DhConfig](../types/messages_DhConfig.md) -$MadelineProto->[messages->getDialogs](messages_getDialogs.md)(\['exclude_pinned' => [Bool](../types/Bool.md), 'offset_date' => [int](../types/int.md), 'offset_id' => [int](../types/int.md), 'offset_peer' => [InputPeer](../types/InputPeer.md), 'limit' => [int](../types/int.md), \]) === [$messages\_Dialogs](../types/messages_Dialogs.md) +$MadelineProto->[messages->getDialogUnreadMarks](messages_getDialogUnreadMarks.md)(\[\]) === [$Vector\_of\_DialogPeer](../types/DialogPeer.md) + +$MadelineProto->[messages->getDialogs](messages_getDialogs.md)(\['exclude_pinned' => [Bool](../types/Bool.md), 'offset_date' => [int](../types/int.md), 'offset_id' => [int](../types/int.md), 'offset_peer' => [InputPeer](../types/InputPeer.md), 'limit' => [int](../types/int.md), 'hash' => [int](../types/int.md), \]) === [$messages\_Dialogs](../types/messages_Dialogs.md) $MadelineProto->[messages->getDocumentByHash](messages_getDocumentByHash.md)(\['sha256' => [bytes](../types/bytes.md), 'size' => [int](../types/int.md), 'mime_type' => [string](../types/string.md), \]) === [$Document](../types/Document.md) @@ -438,6 +442,8 @@ $MadelineProto->[messages->importChatInvite](messages_importChatInvite.md)(\['ha $MadelineProto->[messages->installStickerSet](messages_installStickerSet.md)(\['stickerset' => [InputStickerSet](../types/InputStickerSet.md), 'archived' => [Bool](../types/Bool.md), \]) === [$messages\_StickerSetInstallResult](../types/messages_StickerSetInstallResult.md) +$MadelineProto->[messages->markDialogUnread](messages_markDialogUnread.md)(\['unread' => [Bool](../types/Bool.md), 'peer' => [InputDialogPeer](../types/InputDialogPeer.md), \]) === [$Bool](../types/Bool.md) + $MadelineProto->[messages->migrateChat](messages_migrateChat.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$Updates](../types/Updates.md) $MadelineProto->[messages->readEncryptedHistory](messages_readEncryptedHistory.md)(\['peer' => [InputEncryptedChat](../types/InputEncryptedChat.md), 'max_date' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md) diff --git a/docs/API_docs/methods/index.md b/docs/API_docs/methods/index.md index df29436a..8aab3791 100644 --- a/docs/API_docs/methods/index.md +++ b/docs/API_docs/methods/index.md @@ -208,6 +208,8 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png * Get dialog info of peers: messages.getPeerDialogs +* Get dialogs marked as unread manually: messages.getDialogUnreadMarks + * Get document by SHA256 hash: messages.getDocumentByHash * Get favorite stickers: messages.getFavedStickers @@ -350,6 +352,8 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png * Mark channel/supergroup messages as read: channels.readMessageContents +* Mark dialog as unread : messages.markDialogUnread + * Mark mentions as read: messages.readMentions * Mark message as read: messages.readMessageContents @@ -470,6 +474,8 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png * Toggle channel signatures: channels.toggleSignatures +* Toggle top peers: contacts.toggleTopPeers + * Unblock a user: contacts.unblock * Update online status: account.updateStatus diff --git a/docs/API_docs/methods/messages_getDialogs.md b/docs/API_docs/methods/messages_getDialogs.md index 22dc3327..1341a117 100644 --- a/docs/API_docs/methods/messages_getDialogs.md +++ b/docs/API_docs/methods/messages_getDialogs.md @@ -18,6 +18,7 @@ Gets list of chats: you should use $MadelineProto->get_dialogs() instead: https: |offset\_id|[int](../types/int.md) | Yes|end($res['messages'])['id'];| |offset\_peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional|end($res['dialogs'])['peer'];| |limit|[int](../types/int.md) | Yes|Number of dialogs to fetch| +|hash|[int](../types/int.md) | Yes|$MadelineProto->gen_vector_hash(ids of previously fetched dialogs or [])| ### Return type: [messages\_Dialogs](../types/messages_Dialogs.md) @@ -37,7 +38,7 @@ include 'madeline.php'; $MadelineProto = new \danog\MadelineProto\API('session.madeline'); $MadelineProto->start(); -$messages_Dialogs = $MadelineProto->messages->getDialogs(['exclude_pinned' => Bool, 'offset_date' => int, 'offset_id' => int, 'offset_peer' => InputPeer, 'limit' => int, ]); +$messages_Dialogs = $MadelineProto->messages->getDialogs(['exclude_pinned' => Bool, 'offset_date' => int, 'offset_id' => int, 'offset_peer' => InputPeer, 'limit' => int, 'hash' => int, ]); ``` ### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto): @@ -60,13 +61,15 @@ offset_peer - Json encoded InputPeer limit - Json encoded int +hash - Json encoded int + Or, if you're into Lua: ``` -messages_Dialogs = messages.getDialogs({exclude_pinned=Bool, offset_date=int, offset_id=int, offset_peer=InputPeer, limit=int, }) +messages_Dialogs = messages.getDialogs({exclude_pinned=Bool, offset_date=int, offset_id=int, offset_peer=InputPeer, limit=int, hash=int, }) ``` ### Errors this method can return: diff --git a/docs/API_docs/types/DialogPeer.md b/docs/API_docs/types/DialogPeer.md index 1a6c4cc3..f3195761 100644 --- a/docs/API_docs/types/DialogPeer.md +++ b/docs/API_docs/types/DialogPeer.md @@ -16,5 +16,7 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png ### Methods that return an object of this type (methods): +[$MadelineProto->messages->getDialogUnreadMarks](../methods/messages_getDialogUnreadMarks.md) + diff --git a/docs/API_docs/types/InputWebFileLocation.md b/docs/API_docs/types/InputWebFileLocation.md index 988eb8fb..c5f2f476 100644 --- a/docs/API_docs/types/InputWebFileLocation.md +++ b/docs/API_docs/types/InputWebFileLocation.md @@ -12,6 +12,8 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png [inputWebFileLocation](../constructors/inputWebFileLocation.md) +[inputWebFileGeoPointLocation](../constructors/inputWebFileGeoPointLocation.md) + ### Methods that return an object of this type (methods): diff --git a/docs/API_docs/types/Update.md b/docs/API_docs/types/Update.md index 40f2088a..80782e02 100644 --- a/docs/API_docs/types/Update.md +++ b/docs/API_docs/types/Update.md @@ -144,6 +144,8 @@ Contains notifications about data changes [updateChannelAvailableMessages](../constructors/updateChannelAvailableMessages.md) +[updateDialogUnreadMark](../constructors/updateDialogUnreadMark.md) + ### Methods that return an object of this type (methods): diff --git a/docs/API_docs/types/contacts_TopPeers.md b/docs/API_docs/types/contacts_TopPeers.md index fe4255c7..dc8ee478 100644 --- a/docs/API_docs/types/contacts_TopPeers.md +++ b/docs/API_docs/types/contacts_TopPeers.md @@ -14,6 +14,8 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png [contacts\_topPeers](../constructors/contacts_topPeers.md) +[contacts\_topPeersDisabled](../constructors/contacts_topPeersDisabled.md) + ### Methods that return an object of this type (methods): diff --git a/docs/API_docs/types/messages_Dialogs.md b/docs/API_docs/types/messages_Dialogs.md index 733a42c5..86d5eb72 100644 --- a/docs/API_docs/types/messages_Dialogs.md +++ b/docs/API_docs/types/messages_Dialogs.md @@ -14,6 +14,8 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png [messages\_dialogsSlice](../constructors/messages_dialogsSlice.md) +[messages\_dialogsNotModified](../constructors/messages_dialogsNotModified.md) + ### Methods that return an object of this type (methods): diff --git a/old_docs/README.md b/old_docs/README.md index 219009a1..d050db04 100644 --- a/old_docs/README.md +++ b/old_docs/README.md @@ -4,4 +4,4 @@ description: Documentation of old mtproto layers --- # Documentation of old mtproto layers -[Layer v75](API_docs_v75/) +[Layer v81](API_docs_v81/)