Updated to layer 71, added getSignalBarsCount to php-libtgvoip docs
This commit is contained in:
parent
3347064ab8
commit
68749f63e1
@ -119,7 +119,7 @@ You can find examples for nearly every MadelineProto function in
|
|||||||
|
|
||||||
## Methods
|
## Methods
|
||||||
|
|
||||||
A list of all of the methods that can be called with MadelineProto can be found here: [here (layer 70)](https://daniil.it/MadelineProto/API_docs/).
|
A list of all of the methods that can be called with MadelineProto can be found here: [here (layer 71)](https://daniil.it/MadelineProto/API_docs/).
|
||||||
|
|
||||||
If an object of type User, InputUser, Chat, InputChannel, Peer or InputPeer must be provided as a parameter to a method, you can substitute it with the user/group/channel's username (`@username`) or bot API id (`-1029449`, `1249421`, `-100412412901`).
|
If an object of type User, InputUser, Chat, InputChannel, Peer or InputPeer must be provided as a parameter to a method, you can substitute it with the user/group/channel's username (`@username`) or bot API id (`-1029449`, `1249421`, `-100412412901`).
|
||||||
|
|
||||||
|
@ -39,9 +39,9 @@ $docs = [
|
|||||||
'readme' => false,
|
'readme' => false,
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
'tl_schema' => ['telegram' => __DIR__.'/src/danog/MadelineProto/TL_telegram_v70.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'],
|
'tl_schema' => ['telegram' => __DIR__.'/src/danog/MadelineProto/TL_telegram_v71.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 70)',
|
'title' => 'MadelineProto API documentation (layer 71)',
|
||||||
'description' => 'MadelineProto API documentation (layer 70)',
|
'description' => 'MadelineProto API documentation (layer 71)',
|
||||||
'output_dir' => __DIR__.'/docs/API_docs',
|
'output_dir' => __DIR__.'/docs/API_docs',
|
||||||
'readme' => false,
|
'readme' => false,
|
||||||
],
|
],
|
||||||
|
BIN
docs/.jekyll-metadata
Normal file
BIN
docs/.jekyll-metadata
Normal file
Binary file not shown.
@ -0,0 +1,43 @@
|
|||||||
|
---
|
||||||
|
title: channelAdminLogEventActionChangeStickerSet
|
||||||
|
description: channelAdminLogEventActionChangeStickerSet attributes, type and example
|
||||||
|
---
|
||||||
|
## Constructor: channelAdminLogEventActionChangeStickerSet
|
||||||
|
[Back to constructors index](index.md)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### Attributes:
|
||||||
|
|
||||||
|
| Name | Type | Required |
|
||||||
|
|----------|---------------|----------|
|
||||||
|
|prev\_stickerset|[InputStickerSet](../types/InputStickerSet.md) | Yes|
|
||||||
|
|new\_stickerset|[InputStickerSet](../types/InputStickerSet.md) | Yes|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### Type: [ChannelAdminLogEventAction](../types/ChannelAdminLogEventAction.md)
|
||||||
|
|
||||||
|
|
||||||
|
### Example:
|
||||||
|
|
||||||
|
```
|
||||||
|
$channelAdminLogEventActionChangeStickerSet = ['_' => 'channelAdminLogEventActionChangeStickerSet', 'prev_stickerset' => InputStickerSet, 'new_stickerset' => InputStickerSet];
|
||||||
|
```
|
||||||
|
|
||||||
|
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||||
|
|
||||||
|
```
|
||||||
|
{"_": "channelAdminLogEventActionChangeStickerSet", "prev_stickerset": InputStickerSet, "new_stickerset": InputStickerSet}
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
Or, if you're into Lua:
|
||||||
|
|
||||||
|
|
||||||
|
```
|
||||||
|
channelAdminLogEventActionChangeStickerSet={_='channelAdminLogEventActionChangeStickerSet', prev_stickerset=InputStickerSet, new_stickerset=InputStickerSet}
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
|
@ -13,6 +13,7 @@ description: channelFull attributes, type and example
|
|||||||
|----------|---------------|----------|
|
|----------|---------------|----------|
|
||||||
|can\_view\_participants|[Bool](../types/Bool.md) | Optional|
|
|can\_view\_participants|[Bool](../types/Bool.md) | Optional|
|
||||||
|can\_set\_username|[Bool](../types/Bool.md) | Optional|
|
|can\_set\_username|[Bool](../types/Bool.md) | Optional|
|
||||||
|
|can\_set\_stickers|[Bool](../types/Bool.md) | Optional|
|
||||||
|id|[int](../types/int.md) | Yes|
|
|id|[int](../types/int.md) | Yes|
|
||||||
|about|[string](../types/string.md) | Yes|
|
|about|[string](../types/string.md) | Yes|
|
||||||
|participants\_count|[int](../types/int.md) | Optional|
|
|participants\_count|[int](../types/int.md) | Optional|
|
||||||
@ -29,6 +30,7 @@ description: channelFull attributes, type and example
|
|||||||
|migrated\_from\_chat\_id|[int](../types/int.md) | Optional|
|
|migrated\_from\_chat\_id|[int](../types/int.md) | Optional|
|
||||||
|migrated\_from\_max\_id|[int](../types/int.md) | Optional|
|
|migrated\_from\_max\_id|[int](../types/int.md) | Optional|
|
||||||
|pinned\_msg\_id|[int](../types/int.md) | Optional|
|
|pinned\_msg\_id|[int](../types/int.md) | Optional|
|
||||||
|
|stickerset|[StickerSet](../types/StickerSet.md) | Optional|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -38,13 +40,13 @@ description: channelFull attributes, type and example
|
|||||||
### Example:
|
### Example:
|
||||||
|
|
||||||
```
|
```
|
||||||
$channelFull = ['_' => 'channelFull', 'can_view_participants' => Bool, 'can_set_username' => Bool, 'id' => int, 'about' => 'string', 'participants_count' => int, 'admins_count' => int, 'kicked_count' => int, 'banned_count' => int, 'read_inbox_max_id' => int, 'read_outbox_max_id' => int, 'unread_count' => int, 'chat_photo' => Photo, 'notify_settings' => PeerNotifySettings, 'exported_invite' => ExportedChatInvite, 'bot_info' => [BotInfo], 'migrated_from_chat_id' => int, 'migrated_from_max_id' => int, 'pinned_msg_id' => int];
|
$channelFull = ['_' => 'channelFull', 'can_view_participants' => Bool, 'can_set_username' => Bool, 'can_set_stickers' => Bool, 'id' => int, 'about' => 'string', 'participants_count' => int, 'admins_count' => int, 'kicked_count' => int, 'banned_count' => int, 'read_inbox_max_id' => int, 'read_outbox_max_id' => int, 'unread_count' => int, 'chat_photo' => Photo, 'notify_settings' => PeerNotifySettings, 'exported_invite' => ExportedChatInvite, 'bot_info' => [BotInfo], 'migrated_from_chat_id' => int, 'migrated_from_max_id' => int, 'pinned_msg_id' => int, 'stickerset' => StickerSet];
|
||||||
```
|
```
|
||||||
|
|
||||||
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||||
|
|
||||||
```
|
```
|
||||||
{"_": "channelFull", "can_view_participants": Bool, "can_set_username": Bool, "id": int, "about": "string", "participants_count": int, "admins_count": int, "kicked_count": int, "banned_count": int, "read_inbox_max_id": int, "read_outbox_max_id": int, "unread_count": int, "chat_photo": Photo, "notify_settings": PeerNotifySettings, "exported_invite": ExportedChatInvite, "bot_info": [BotInfo], "migrated_from_chat_id": int, "migrated_from_max_id": int, "pinned_msg_id": int}
|
{"_": "channelFull", "can_view_participants": Bool, "can_set_username": Bool, "can_set_stickers": Bool, "id": int, "about": "string", "participants_count": int, "admins_count": int, "kicked_count": int, "banned_count": int, "read_inbox_max_id": int, "read_outbox_max_id": int, "unread_count": int, "chat_photo": Photo, "notify_settings": PeerNotifySettings, "exported_invite": ExportedChatInvite, "bot_info": [BotInfo], "migrated_from_chat_id": int, "migrated_from_max_id": int, "pinned_msg_id": int, "stickerset": StickerSet}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
@ -52,7 +54,7 @@ Or, if you're into Lua:
|
|||||||
|
|
||||||
|
|
||||||
```
|
```
|
||||||
channelFull={_='channelFull', can_view_participants=Bool, can_set_username=Bool, id=int, about='string', participants_count=int, admins_count=int, kicked_count=int, banned_count=int, read_inbox_max_id=int, read_outbox_max_id=int, unread_count=int, chat_photo=Photo, notify_settings=PeerNotifySettings, exported_invite=ExportedChatInvite, bot_info={BotInfo}, migrated_from_chat_id=int, migrated_from_max_id=int, pinned_msg_id=int}
|
channelFull={_='channelFull', can_view_participants=Bool, can_set_username=Bool, can_set_stickers=Bool, id=int, about='string', participants_count=int, admins_count=int, kicked_count=int, banned_count=int, read_inbox_max_id=int, read_outbox_max_id=int, unread_count=int, chat_photo=Photo, notify_settings=PeerNotifySettings, exported_invite=ExportedChatInvite, bot_info={BotInfo}, migrated_from_chat_id=int, migrated_from_max_id=int, pinned_msg_id=int, stickerset=StickerSet}
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -11,7 +11,6 @@ description: config attributes, type and example
|
|||||||
|
|
||||||
| Name | Type | Required |
|
| Name | Type | Required |
|
||||||
|----------|---------------|----------|
|
|----------|---------------|----------|
|
||||||
|phonecalls\_enabled|[Bool](../types/Bool.md) | Optional|
|
|
||||||
|date|[int](../types/int.md) | Yes|
|
|date|[int](../types/int.md) | Yes|
|
||||||
|expires|[int](../types/int.md) | Yes|
|
|expires|[int](../types/int.md) | Yes|
|
||||||
|test\_mode|[Bool](../types/Bool.md) | Yes|
|
|test\_mode|[Bool](../types/Bool.md) | Yes|
|
||||||
@ -33,8 +32,10 @@ description: config attributes, type and example
|
|||||||
|edit\_time\_limit|[int](../types/int.md) | Yes|
|
|edit\_time\_limit|[int](../types/int.md) | Yes|
|
||||||
|rating\_e\_decay|[int](../types/int.md) | Yes|
|
|rating\_e\_decay|[int](../types/int.md) | Yes|
|
||||||
|stickers\_recent\_limit|[int](../types/int.md) | Yes|
|
|stickers\_recent\_limit|[int](../types/int.md) | Yes|
|
||||||
|
|stickers\_faved\_limit|[int](../types/int.md) | Yes|
|
||||||
|tmp\_sessions|[int](../types/int.md) | Optional|
|
|tmp\_sessions|[int](../types/int.md) | Optional|
|
||||||
|pinned\_dialogs\_count\_max|[int](../types/int.md) | Yes|
|
|pinned\_dialogs\_count\_max|[int](../types/int.md) | Yes|
|
||||||
|
|phonecalls\_enabled|[Bool](../types/Bool.md) | Optional|
|
||||||
|call\_receive\_timeout\_ms|[int](../types/int.md) | Yes|
|
|call\_receive\_timeout\_ms|[int](../types/int.md) | Yes|
|
||||||
|call\_ring\_timeout\_ms|[int](../types/int.md) | Yes|
|
|call\_ring\_timeout\_ms|[int](../types/int.md) | Yes|
|
||||||
|call\_connect\_timeout\_ms|[int](../types/int.md) | Yes|
|
|call\_connect\_timeout\_ms|[int](../types/int.md) | Yes|
|
||||||
@ -52,13 +53,13 @@ description: config attributes, type and example
|
|||||||
### Example:
|
### Example:
|
||||||
|
|
||||||
```
|
```
|
||||||
$config = ['_' => 'config', 'phonecalls_enabled' => Bool, 'date' => int, 'expires' => int, 'test_mode' => Bool, 'this_dc' => int, 'dc_options' => [DcOption], 'chat_size_max' => int, 'megagroup_size_max' => int, 'forwarded_count_max' => int, 'online_update_period_ms' => int, 'offline_blur_timeout_ms' => int, 'offline_idle_timeout_ms' => int, 'online_cloud_timeout_ms' => int, 'notify_cloud_delay_ms' => int, 'notify_default_delay_ms' => int, 'chat_big_size' => int, 'push_chat_period_ms' => int, 'push_chat_limit' => int, 'saved_gifs_limit' => int, 'edit_time_limit' => int, 'rating_e_decay' => int, 'stickers_recent_limit' => int, 'tmp_sessions' => int, 'pinned_dialogs_count_max' => int, 'call_receive_timeout_ms' => int, 'call_ring_timeout_ms' => int, 'call_connect_timeout_ms' => int, 'call_packet_timeout_ms' => int, 'me_url_prefix' => 'string', 'suggested_lang_code' => 'string', 'lang_pack_version' => int, 'disabled_features' => [DisabledFeature]];
|
$config = ['_' => 'config', 'date' => int, 'expires' => int, 'test_mode' => Bool, 'this_dc' => int, 'dc_options' => [DcOption], 'chat_size_max' => int, 'megagroup_size_max' => int, 'forwarded_count_max' => int, 'online_update_period_ms' => int, 'offline_blur_timeout_ms' => int, 'offline_idle_timeout_ms' => int, 'online_cloud_timeout_ms' => int, 'notify_cloud_delay_ms' => int, 'notify_default_delay_ms' => int, 'chat_big_size' => int, 'push_chat_period_ms' => int, 'push_chat_limit' => int, 'saved_gifs_limit' => int, 'edit_time_limit' => int, 'rating_e_decay' => int, 'stickers_recent_limit' => int, 'stickers_faved_limit' => int, 'tmp_sessions' => int, 'pinned_dialogs_count_max' => int, 'phonecalls_enabled' => Bool, 'call_receive_timeout_ms' => int, 'call_ring_timeout_ms' => int, 'call_connect_timeout_ms' => int, 'call_packet_timeout_ms' => int, 'me_url_prefix' => 'string', 'suggested_lang_code' => 'string', 'lang_pack_version' => int, 'disabled_features' => [DisabledFeature]];
|
||||||
```
|
```
|
||||||
|
|
||||||
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||||
|
|
||||||
```
|
```
|
||||||
{"_": "config", "phonecalls_enabled": Bool, "date": int, "expires": int, "test_mode": Bool, "this_dc": int, "dc_options": [DcOption], "chat_size_max": int, "megagroup_size_max": int, "forwarded_count_max": int, "online_update_period_ms": int, "offline_blur_timeout_ms": int, "offline_idle_timeout_ms": int, "online_cloud_timeout_ms": int, "notify_cloud_delay_ms": int, "notify_default_delay_ms": int, "chat_big_size": int, "push_chat_period_ms": int, "push_chat_limit": int, "saved_gifs_limit": int, "edit_time_limit": int, "rating_e_decay": int, "stickers_recent_limit": int, "tmp_sessions": int, "pinned_dialogs_count_max": int, "call_receive_timeout_ms": int, "call_ring_timeout_ms": int, "call_connect_timeout_ms": int, "call_packet_timeout_ms": int, "me_url_prefix": "string", "suggested_lang_code": "string", "lang_pack_version": int, "disabled_features": [DisabledFeature]}
|
{"_": "config", "date": int, "expires": int, "test_mode": Bool, "this_dc": int, "dc_options": [DcOption], "chat_size_max": int, "megagroup_size_max": int, "forwarded_count_max": int, "online_update_period_ms": int, "offline_blur_timeout_ms": int, "offline_idle_timeout_ms": int, "online_cloud_timeout_ms": int, "notify_cloud_delay_ms": int, "notify_default_delay_ms": int, "chat_big_size": int, "push_chat_period_ms": int, "push_chat_limit": int, "saved_gifs_limit": int, "edit_time_limit": int, "rating_e_decay": int, "stickers_recent_limit": int, "stickers_faved_limit": int, "tmp_sessions": int, "pinned_dialogs_count_max": int, "phonecalls_enabled": Bool, "call_receive_timeout_ms": int, "call_ring_timeout_ms": int, "call_connect_timeout_ms": int, "call_packet_timeout_ms": int, "me_url_prefix": "string", "suggested_lang_code": "string", "lang_pack_version": int, "disabled_features": [DisabledFeature]}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
@ -66,7 +67,7 @@ Or, if you're into Lua:
|
|||||||
|
|
||||||
|
|
||||||
```
|
```
|
||||||
config={_='config', phonecalls_enabled=Bool, date=int, expires=int, test_mode=Bool, this_dc=int, dc_options={DcOption}, chat_size_max=int, megagroup_size_max=int, forwarded_count_max=int, online_update_period_ms=int, offline_blur_timeout_ms=int, offline_idle_timeout_ms=int, online_cloud_timeout_ms=int, notify_cloud_delay_ms=int, notify_default_delay_ms=int, chat_big_size=int, push_chat_period_ms=int, push_chat_limit=int, saved_gifs_limit=int, edit_time_limit=int, rating_e_decay=int, stickers_recent_limit=int, tmp_sessions=int, pinned_dialogs_count_max=int, call_receive_timeout_ms=int, call_ring_timeout_ms=int, call_connect_timeout_ms=int, call_packet_timeout_ms=int, me_url_prefix='string', suggested_lang_code='string', lang_pack_version=int, disabled_features={DisabledFeature}}
|
config={_='config', date=int, expires=int, test_mode=Bool, this_dc=int, dc_options={DcOption}, chat_size_max=int, megagroup_size_max=int, forwarded_count_max=int, online_update_period_ms=int, offline_blur_timeout_ms=int, offline_idle_timeout_ms=int, online_cloud_timeout_ms=int, notify_cloud_delay_ms=int, notify_default_delay_ms=int, chat_big_size=int, push_chat_period_ms=int, push_chat_limit=int, saved_gifs_limit=int, edit_time_limit=int, rating_e_decay=int, stickers_recent_limit=int, stickers_faved_limit=int, tmp_sessions=int, pinned_dialogs_count_max=int, phonecalls_enabled=Bool, call_receive_timeout_ms=int, call_ring_timeout_ms=int, call_connect_timeout_ms=int, call_packet_timeout_ms=int, me_url_prefix='string', suggested_lang_code='string', lang_pack_version=int, disabled_features={DisabledFeature}}
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -12,6 +12,7 @@ description: contacts_contacts attributes, type and example
|
|||||||
| Name | Type | Required |
|
| Name | Type | Required |
|
||||||
|----------|---------------|----------|
|
|----------|---------------|----------|
|
||||||
|contacts|Array of [Contact](../types/Contact.md) | Yes|
|
|contacts|Array of [Contact](../types/Contact.md) | Yes|
|
||||||
|
|saved\_count|[int](../types/int.md) | Yes|
|
||||||
|users|Array of [User](../types/User.md) | Yes|
|
|users|Array of [User](../types/User.md) | Yes|
|
||||||
|
|
||||||
|
|
||||||
@ -22,13 +23,13 @@ description: contacts_contacts attributes, type and example
|
|||||||
### Example:
|
### Example:
|
||||||
|
|
||||||
```
|
```
|
||||||
$contacts_contacts = ['_' => 'contacts.contacts', 'contacts' => [Contact], 'users' => [User]];
|
$contacts_contacts = ['_' => 'contacts.contacts', 'contacts' => [Contact], 'saved_count' => int, 'users' => [User]];
|
||||||
```
|
```
|
||||||
|
|
||||||
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||||
|
|
||||||
```
|
```
|
||||||
{"_": "contacts.contacts", "contacts": [Contact], "users": [User]}
|
{"_": "contacts.contacts", "contacts": [Contact], "saved_count": int, "users": [User]}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
@ -36,7 +37,7 @@ Or, if you're into Lua:
|
|||||||
|
|
||||||
|
|
||||||
```
|
```
|
||||||
contacts_contacts={_='contacts.contacts', contacts={Contact}, users={User}}
|
contacts_contacts={_='contacts.contacts', contacts={Contact}, saved_count=int, users={User}}
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -17,6 +17,7 @@ description: dialog attributes, type and example
|
|||||||
|read\_inbox\_max\_id|[int](../types/int.md) | Yes|
|
|read\_inbox\_max\_id|[int](../types/int.md) | Yes|
|
||||||
|read\_outbox\_max\_id|[int](../types/int.md) | Yes|
|
|read\_outbox\_max\_id|[int](../types/int.md) | Yes|
|
||||||
|unread\_count|[int](../types/int.md) | Yes|
|
|unread\_count|[int](../types/int.md) | Yes|
|
||||||
|
|unread\_mentions\_count|[int](../types/int.md) | Yes|
|
||||||
|notify\_settings|[PeerNotifySettings](../types/PeerNotifySettings.md) | Yes|
|
|notify\_settings|[PeerNotifySettings](../types/PeerNotifySettings.md) | Yes|
|
||||||
|pts|[int](../types/int.md) | Optional|
|
|pts|[int](../types/int.md) | Optional|
|
||||||
|draft|[DraftMessage](../types/DraftMessage.md) | Optional|
|
|draft|[DraftMessage](../types/DraftMessage.md) | Optional|
|
||||||
@ -29,13 +30,13 @@ description: dialog attributes, type and example
|
|||||||
### Example:
|
### Example:
|
||||||
|
|
||||||
```
|
```
|
||||||
$dialog = ['_' => 'dialog', 'pinned' => Bool, '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];
|
$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];
|
||||||
```
|
```
|
||||||
|
|
||||||
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
[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, "notify_settings": PeerNotifySettings, "pts": int, "draft": DraftMessage}
|
{"_": "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}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
@ -43,7 +44,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, notify_settings=PeerNotifySettings, pts=int, draft=DraftMessage}
|
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}
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -109,6 +109,9 @@ description: List of constructors
|
|||||||
***
|
***
|
||||||
<br><br>[$channelAdminLogEventActionChangePhoto](../constructors/channelAdminLogEventActionChangePhoto.md) = \['prev_photo' => [ChatPhoto](../types/ChatPhoto.md), 'new_photo' => [ChatPhoto](../types/ChatPhoto.md), \];<a name="channelAdminLogEventActionChangePhoto"></a>
|
<br><br>[$channelAdminLogEventActionChangePhoto](../constructors/channelAdminLogEventActionChangePhoto.md) = \['prev_photo' => [ChatPhoto](../types/ChatPhoto.md), 'new_photo' => [ChatPhoto](../types/ChatPhoto.md), \];<a name="channelAdminLogEventActionChangePhoto"></a>
|
||||||
|
|
||||||
|
***
|
||||||
|
<br><br>[$channelAdminLogEventActionChangeStickerSet](../constructors/channelAdminLogEventActionChangeStickerSet.md) = \['prev_stickerset' => [InputStickerSet](../types/InputStickerSet.md), 'new_stickerset' => [InputStickerSet](../types/InputStickerSet.md), \];<a name="channelAdminLogEventActionChangeStickerSet"></a>
|
||||||
|
|
||||||
***
|
***
|
||||||
<br><br>[$channelAdminLogEventActionChangeTitle](../constructors/channelAdminLogEventActionChangeTitle.md) = \['prev_value' => [string](../types/string.md), 'new_value' => [string](../types/string.md), \];<a name="channelAdminLogEventActionChangeTitle"></a>
|
<br><br>[$channelAdminLogEventActionChangeTitle](../constructors/channelAdminLogEventActionChangeTitle.md) = \['prev_value' => [string](../types/string.md), 'new_value' => [string](../types/string.md), \];<a name="channelAdminLogEventActionChangeTitle"></a>
|
||||||
|
|
||||||
@ -158,7 +161,7 @@ description: List of constructors
|
|||||||
<br><br>[$channelForbidden](../constructors/channelForbidden.md) = \['broadcast' => [Bool](../types/Bool.md), 'megagroup' => [Bool](../types/Bool.md), 'id' => [int](../types/int.md), 'access_hash' => [long](../types/long.md), 'title' => [string](../types/string.md), 'until_date' => [int](../types/int.md), \];<a name="channelForbidden"></a>
|
<br><br>[$channelForbidden](../constructors/channelForbidden.md) = \['broadcast' => [Bool](../types/Bool.md), 'megagroup' => [Bool](../types/Bool.md), 'id' => [int](../types/int.md), 'access_hash' => [long](../types/long.md), 'title' => [string](../types/string.md), 'until_date' => [int](../types/int.md), \];<a name="channelForbidden"></a>
|
||||||
|
|
||||||
***
|
***
|
||||||
<br><br>[$channelFull](../constructors/channelFull.md) = \['can_view_participants' => [Bool](../types/Bool.md), 'can_set_username' => [Bool](../types/Bool.md), 'id' => [int](../types/int.md), 'about' => [string](../types/string.md), 'participants_count' => [int](../types/int.md), 'admins_count' => [int](../types/int.md), 'kicked_count' => [int](../types/int.md), 'banned_count' => [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), 'chat_photo' => [Photo](../types/Photo.md), 'notify_settings' => [PeerNotifySettings](../types/PeerNotifySettings.md), 'exported_invite' => [ExportedChatInvite](../types/ExportedChatInvite.md), 'bot_info' => \[[BotInfo](../types/BotInfo.md)\], 'migrated_from_chat_id' => [int](../types/int.md), 'migrated_from_max_id' => [int](../types/int.md), 'pinned_msg_id' => [int](../types/int.md), \];<a name="channelFull"></a>
|
<br><br>[$channelFull](../constructors/channelFull.md) = \['can_view_participants' => [Bool](../types/Bool.md), 'can_set_username' => [Bool](../types/Bool.md), 'can_set_stickers' => [Bool](../types/Bool.md), 'id' => [int](../types/int.md), 'about' => [string](../types/string.md), 'participants_count' => [int](../types/int.md), 'admins_count' => [int](../types/int.md), 'kicked_count' => [int](../types/int.md), 'banned_count' => [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), 'chat_photo' => [Photo](../types/Photo.md), 'notify_settings' => [PeerNotifySettings](../types/PeerNotifySettings.md), 'exported_invite' => [ExportedChatInvite](../types/ExportedChatInvite.md), 'bot_info' => \[[BotInfo](../types/BotInfo.md)\], 'migrated_from_chat_id' => [int](../types/int.md), 'migrated_from_max_id' => [int](../types/int.md), 'pinned_msg_id' => [int](../types/int.md), 'stickerset' => [StickerSet](../types/StickerSet.md), \];<a name="channelFull"></a>
|
||||||
|
|
||||||
***
|
***
|
||||||
<br><br>[$channelMessagesFilter](../constructors/channelMessagesFilter.md) = \['exclude_new_messages' => [Bool](../types/Bool.md), 'ranges' => \[[MessageRange](../types/MessageRange.md)\], \];<a name="channelMessagesFilter"></a>
|
<br><br>[$channelMessagesFilter](../constructors/channelMessagesFilter.md) = \['exclude_new_messages' => [Bool](../types/Bool.md), 'ranges' => \[[MessageRange](../types/MessageRange.md)\], \];<a name="channelMessagesFilter"></a>
|
||||||
@ -255,7 +258,7 @@ description: List of constructors
|
|||||||
<br><br>[$client\_DH\_inner\_data](../constructors/client_DH_inner_data.md) = \['nonce' => [int128](../types/int128.md), 'server_nonce' => [int128](../types/int128.md), 'retry_id' => [long](../types/long.md), 'g_b' => [string](../types/string.md), \];<a name="client_DH_inner_data"></a>
|
<br><br>[$client\_DH\_inner\_data](../constructors/client_DH_inner_data.md) = \['nonce' => [int128](../types/int128.md), 'server_nonce' => [int128](../types/int128.md), 'retry_id' => [long](../types/long.md), 'g_b' => [string](../types/string.md), \];<a name="client_DH_inner_data"></a>
|
||||||
|
|
||||||
***
|
***
|
||||||
<br><br>[$config](../constructors/config.md) = \['phonecalls_enabled' => [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), 'chat_big_size' => [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), 'rating_e_decay' => [int](../types/int.md), 'stickers_recent_limit' => [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), 'suggested_lang_code' => [string](../types/string.md), 'lang_pack_version' => [int](../types/int.md), 'disabled_features' => \[[DisabledFeature](../types/DisabledFeature.md)\], \];<a name="config"></a>
|
<br><br>[$config](../constructors/config.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), 'chat_big_size' => [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), 'rating_e_decay' => [int](../types/int.md), 'stickers_recent_limit' => [int](../types/int.md), 'stickers_faved_limit' => [int](../types/int.md), 'tmp_sessions' => [int](../types/int.md), 'pinned_dialogs_count_max' => [int](../types/int.md), 'phonecalls_enabled' => [Bool](../types/Bool.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), 'suggested_lang_code' => [string](../types/string.md), 'lang_pack_version' => [int](../types/int.md), 'disabled_features' => \[[DisabledFeature](../types/DisabledFeature.md)\], \];<a name="config"></a>
|
||||||
|
|
||||||
***
|
***
|
||||||
<br><br>[$contact](../constructors/contact.md) = \['user_id' => [int](../types/int.md), 'mutual' => [Bool](../types/Bool.md), \];<a name="contact"></a>
|
<br><br>[$contact](../constructors/contact.md) = \['user_id' => [int](../types/int.md), 'mutual' => [Bool](../types/Bool.md), \];<a name="contact"></a>
|
||||||
@ -283,7 +286,7 @@ description: List of constructors
|
|||||||
|
|
||||||
[$contacts\_blockedSlice](../constructors/contacts_blockedSlice.md) = \['count' => [int](../types/int.md), 'blocked' => \[[ContactBlocked](../types/ContactBlocked.md)\], 'users' => \[[User](../types/User.md)\], \];<a name="contacts_blockedSlice"></a>
|
[$contacts\_blockedSlice](../constructors/contacts_blockedSlice.md) = \['count' => [int](../types/int.md), 'blocked' => \[[ContactBlocked](../types/ContactBlocked.md)\], 'users' => \[[User](../types/User.md)\], \];<a name="contacts_blockedSlice"></a>
|
||||||
|
|
||||||
[$contacts\_contacts](../constructors/contacts_contacts.md) = \['contacts' => \[[Contact](../types/Contact.md)\], 'users' => \[[User](../types/User.md)\], \];<a name="contacts_contacts"></a>
|
[$contacts\_contacts](../constructors/contacts_contacts.md) = \['contacts' => \[[Contact](../types/Contact.md)\], 'saved_count' => [int](../types/int.md), 'users' => \[[User](../types/User.md)\], \];<a name="contacts_contacts"></a>
|
||||||
|
|
||||||
[$contacts\_contactsNotModified](../constructors/contacts_contactsNotModified.md) = \[\];<a name="contacts_contactsNotModified"></a>
|
[$contacts\_contactsNotModified](../constructors/contacts_contactsNotModified.md) = \[\];<a name="contacts_contactsNotModified"></a>
|
||||||
|
|
||||||
@ -405,7 +408,7 @@ description: List of constructors
|
|||||||
[$dh\_gen\_retry](../constructors/dh_gen_retry.md) = \['nonce' => [int128](../types/int128.md), 'server_nonce' => [int128](../types/int128.md), 'new_nonce_hash2' => [int128](../types/int128.md), \];<a name="dh_gen_retry"></a>
|
[$dh\_gen\_retry](../constructors/dh_gen_retry.md) = \['nonce' => [int128](../types/int128.md), 'server_nonce' => [int128](../types/int128.md), 'new_nonce_hash2' => [int128](../types/int128.md), \];<a name="dh_gen_retry"></a>
|
||||||
|
|
||||||
***
|
***
|
||||||
<br><br>[$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), 'notify_settings' => [PeerNotifySettings](../types/PeerNotifySettings.md), 'pts' => [int](../types/int.md), 'draft' => [DraftMessage](../types/DraftMessage.md), \];<a name="dialog"></a>
|
<br><br>[$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), \];<a name="dialog"></a>
|
||||||
|
|
||||||
***
|
***
|
||||||
<br><br>[$disabledFeature](../constructors/disabledFeature.md) = \['feature' => [string](../types/string.md), 'description' => [string](../types/string.md), \];<a name="disabledFeature"></a>
|
<br><br>[$disabledFeature](../constructors/disabledFeature.md) = \['feature' => [string](../types/string.md), 'description' => [string](../types/string.md), \];<a name="disabledFeature"></a>
|
||||||
@ -683,6 +686,12 @@ description: List of constructors
|
|||||||
***
|
***
|
||||||
<br><br>[$inputMessagesFilterMusic](../constructors/inputMessagesFilterMusic.md) = \[\];<a name="inputMessagesFilterMusic"></a>
|
<br><br>[$inputMessagesFilterMusic](../constructors/inputMessagesFilterMusic.md) = \[\];<a name="inputMessagesFilterMusic"></a>
|
||||||
|
|
||||||
|
***
|
||||||
|
<br><br>[$inputMessagesFilterMyMentions](../constructors/inputMessagesFilterMyMentions.md) = \[\];<a name="inputMessagesFilterMyMentions"></a>
|
||||||
|
|
||||||
|
***
|
||||||
|
<br><br>[$inputMessagesFilterMyMentionsUnread](../constructors/inputMessagesFilterMyMentionsUnread.md) = \[\];<a name="inputMessagesFilterMyMentionsUnread"></a>
|
||||||
|
|
||||||
***
|
***
|
||||||
<br><br>[$inputMessagesFilterPhoneCalls](../constructors/inputMessagesFilterPhoneCalls.md) = \['missed' => [Bool](../types/Bool.md), \];<a name="inputMessagesFilterPhoneCalls"></a>
|
<br><br>[$inputMessagesFilterPhoneCalls](../constructors/inputMessagesFilterPhoneCalls.md) = \['missed' => [Bool](../types/Bool.md), \];<a name="inputMessagesFilterPhoneCalls"></a>
|
||||||
|
|
||||||
@ -1056,6 +1065,10 @@ description: List of constructors
|
|||||||
|
|
||||||
[$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)\], \];<a name="messages_dialogsSlice"></a>
|
[$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)\], \];<a name="messages_dialogsSlice"></a>
|
||||||
|
|
||||||
|
[$messages\_favedStickers](../constructors/messages_favedStickers.md) = \['hash' => [int](../types/int.md), 'packs' => \[[StickerPack](../types/StickerPack.md)\], 'stickers' => \[[Document](../types/Document.md)\], \];<a name="messages_favedStickers"></a>
|
||||||
|
|
||||||
|
[$messages\_favedStickersNotModified](../constructors/messages_favedStickersNotModified.md) = \[\];<a name="messages_favedStickersNotModified"></a>
|
||||||
|
|
||||||
[$messages\_featuredStickers](../constructors/messages_featuredStickers.md) = \['hash' => [int](../types/int.md), 'sets' => \[[StickerSetCovered](../types/StickerSetCovered.md)\], 'unread' => \[[long](../types/long.md)\], \];<a name="messages_featuredStickers"></a>
|
[$messages\_featuredStickers](../constructors/messages_featuredStickers.md) = \['hash' => [int](../types/int.md), 'sets' => \[[StickerSetCovered](../types/StickerSetCovered.md)\], 'unread' => \[[long](../types/long.md)\], \];<a name="messages_featuredStickers"></a>
|
||||||
|
|
||||||
[$messages\_featuredStickersNotModified](../constructors/messages_featuredStickersNotModified.md) = \[\];<a name="messages_featuredStickersNotModified"></a>
|
[$messages\_featuredStickersNotModified](../constructors/messages_featuredStickersNotModified.md) = \[\];<a name="messages_featuredStickersNotModified"></a>
|
||||||
@ -1551,6 +1564,9 @@ description: List of constructors
|
|||||||
***
|
***
|
||||||
<br><br>[$updateChannelPinnedMessage](../constructors/updateChannelPinnedMessage.md) = \['channel_id' => [int](../types/int.md), 'id' => [int](../types/int.md), \];<a name="updateChannelPinnedMessage"></a>
|
<br><br>[$updateChannelPinnedMessage](../constructors/updateChannelPinnedMessage.md) = \['channel_id' => [int](../types/int.md), 'id' => [int](../types/int.md), \];<a name="updateChannelPinnedMessage"></a>
|
||||||
|
|
||||||
|
***
|
||||||
|
<br><br>[$updateChannelReadMessagesContents](../constructors/updateChannelReadMessagesContents.md) = \['channel_id' => [int](../types/int.md), 'messages' => \[[int](../types/int.md)\], \];<a name="updateChannelReadMessagesContents"></a>
|
||||||
|
|
||||||
***
|
***
|
||||||
<br><br>[$updateChannelTooLong](../constructors/updateChannelTooLong.md) = \['channel_id' => [int](../types/int.md), 'pts' => [int](../types/int.md), \];<a name="updateChannelTooLong"></a>
|
<br><br>[$updateChannelTooLong](../constructors/updateChannelTooLong.md) = \['channel_id' => [int](../types/int.md), 'pts' => [int](../types/int.md), \];<a name="updateChannelTooLong"></a>
|
||||||
|
|
||||||
@ -1584,6 +1600,9 @@ description: List of constructors
|
|||||||
***
|
***
|
||||||
<br><br>[$updateContactRegistered](../constructors/updateContactRegistered.md) = \['user_id' => [int](../types/int.md), 'date' => [int](../types/int.md), \];<a name="updateContactRegistered"></a>
|
<br><br>[$updateContactRegistered](../constructors/updateContactRegistered.md) = \['user_id' => [int](../types/int.md), 'date' => [int](../types/int.md), \];<a name="updateContactRegistered"></a>
|
||||||
|
|
||||||
|
***
|
||||||
|
<br><br>[$updateContactsReset](../constructors/updateContactsReset.md) = \[\];<a name="updateContactsReset"></a>
|
||||||
|
|
||||||
***
|
***
|
||||||
<br><br>[$updateDcOptions](../constructors/updateDcOptions.md) = \['dc_options' => \[[DcOption](../types/DcOption.md)\], \];<a name="updateDcOptions"></a>
|
<br><br>[$updateDcOptions](../constructors/updateDcOptions.md) = \['dc_options' => \[[DcOption](../types/DcOption.md)\], \];<a name="updateDcOptions"></a>
|
||||||
|
|
||||||
@ -1614,6 +1633,9 @@ description: List of constructors
|
|||||||
***
|
***
|
||||||
<br><br>[$updateEncryption](../constructors/updateEncryption.md) = \['chat' => [EncryptedChat](../types/EncryptedChat.md), 'date' => [int](../types/int.md), \];<a name="updateEncryption"></a>
|
<br><br>[$updateEncryption](../constructors/updateEncryption.md) = \['chat' => [EncryptedChat](../types/EncryptedChat.md), 'date' => [int](../types/int.md), \];<a name="updateEncryption"></a>
|
||||||
|
|
||||||
|
***
|
||||||
|
<br><br>[$updateFavedStickers](../constructors/updateFavedStickers.md) = \[\];<a name="updateFavedStickers"></a>
|
||||||
|
|
||||||
***
|
***
|
||||||
<br><br>[$updateInlineBotCallbackQuery](../constructors/updateInlineBotCallbackQuery.md) = \['query_id' => [long](../types/long.md), 'user_id' => [int](../types/int.md), 'msg_id' => [InputBotInlineMessageID](../types/InputBotInlineMessageID.md), 'chat_instance' => [long](../types/long.md), 'data' => [bytes](../types/bytes.md), 'game_short_name' => [string](../types/string.md), \];<a name="updateInlineBotCallbackQuery"></a>
|
<br><br>[$updateInlineBotCallbackQuery](../constructors/updateInlineBotCallbackQuery.md) = \['query_id' => [long](../types/long.md), 'user_id' => [int](../types/int.md), 'msg_id' => [InputBotInlineMessageID](../types/InputBotInlineMessageID.md), 'chat_instance' => [long](../types/long.md), 'data' => [bytes](../types/bytes.md), 'game_short_name' => [string](../types/string.md), \];<a name="updateInlineBotCallbackQuery"></a>
|
||||||
|
|
||||||
@ -1733,7 +1755,7 @@ description: List of constructors
|
|||||||
|
|
||||||
[$updates\_channelDifferenceEmpty](../constructors/updates_channelDifferenceEmpty.md) = \['final' => [Bool](../types/Bool.md), 'pts' => [int](../types/int.md), 'timeout' => [int](../types/int.md), \];<a name="updates_channelDifferenceEmpty"></a>
|
[$updates\_channelDifferenceEmpty](../constructors/updates_channelDifferenceEmpty.md) = \['final' => [Bool](../types/Bool.md), 'pts' => [int](../types/int.md), 'timeout' => [int](../types/int.md), \];<a name="updates_channelDifferenceEmpty"></a>
|
||||||
|
|
||||||
[$updates\_channelDifferenceTooLong](../constructors/updates_channelDifferenceTooLong.md) = \['final' => [Bool](../types/Bool.md), 'pts' => [int](../types/int.md), 'timeout' => [int](../types/int.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), 'messages' => \[[Message](../types/Message.md)\], 'chats' => \[[Chat](../types/Chat.md)\], 'users' => \[[User](../types/User.md)\], \];<a name="updates_channelDifferenceTooLong"></a>
|
[$updates\_channelDifferenceTooLong](../constructors/updates_channelDifferenceTooLong.md) = \['final' => [Bool](../types/Bool.md), 'pts' => [int](../types/int.md), 'timeout' => [int](../types/int.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), 'messages' => \[[Message](../types/Message.md)\], 'chats' => \[[Chat](../types/Chat.md)\], 'users' => \[[User](../types/User.md)\], \];<a name="updates_channelDifferenceTooLong"></a>
|
||||||
|
|
||||||
[$updates\_difference](../constructors/updates_difference.md) = \['new_messages' => \[[Message](../types/Message.md)\], 'new_encrypted_messages' => \[[EncryptedMessage](../types/EncryptedMessage.md)\], 'other_updates' => \[[Update](../types/Update.md)\], 'chats' => \[[Chat](../types/Chat.md)\], 'users' => \[[User](../types/User.md)\], 'state' => [updates\_State](../types/updates_State.md), \];<a name="updates_difference"></a>
|
[$updates\_difference](../constructors/updates_difference.md) = \['new_messages' => \[[Message](../types/Message.md)\], 'new_encrypted_messages' => \[[EncryptedMessage](../types/EncryptedMessage.md)\], 'other_updates' => \[[Update](../types/Update.md)\], 'chats' => \[[Chat](../types/Chat.md)\], 'users' => \[[User](../types/User.md)\], 'state' => [updates\_State](../types/updates_State.md), \];<a name="updates_difference"></a>
|
||||||
|
|
||||||
|
37
docs/API_docs/constructors/inputMessagesFilterMyMentions.md
Normal file
37
docs/API_docs/constructors/inputMessagesFilterMyMentions.md
Normal file
@ -0,0 +1,37 @@
|
|||||||
|
---
|
||||||
|
title: inputMessagesFilterMyMentions
|
||||||
|
description: inputMessagesFilterMyMentions attributes, type and example
|
||||||
|
---
|
||||||
|
## Constructor: inputMessagesFilterMyMentions
|
||||||
|
[Back to constructors index](index.md)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### Type: [MessagesFilter](../types/MessagesFilter.md)
|
||||||
|
|
||||||
|
|
||||||
|
### Example:
|
||||||
|
|
||||||
|
```
|
||||||
|
$inputMessagesFilterMyMentions = ['_' => 'inputMessagesFilterMyMentions'];
|
||||||
|
```
|
||||||
|
|
||||||
|
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||||
|
|
||||||
|
```
|
||||||
|
{"_": "inputMessagesFilterMyMentions"}
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
Or, if you're into Lua:
|
||||||
|
|
||||||
|
|
||||||
|
```
|
||||||
|
inputMessagesFilterMyMentions={_='inputMessagesFilterMyMentions'}
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
|
@ -0,0 +1,37 @@
|
|||||||
|
---
|
||||||
|
title: inputMessagesFilterMyMentionsUnread
|
||||||
|
description: inputMessagesFilterMyMentionsUnread attributes, type and example
|
||||||
|
---
|
||||||
|
## Constructor: inputMessagesFilterMyMentionsUnread
|
||||||
|
[Back to constructors index](index.md)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### Type: [MessagesFilter](../types/MessagesFilter.md)
|
||||||
|
|
||||||
|
|
||||||
|
### Example:
|
||||||
|
|
||||||
|
```
|
||||||
|
$inputMessagesFilterMyMentionsUnread = ['_' => 'inputMessagesFilterMyMentionsUnread'];
|
||||||
|
```
|
||||||
|
|
||||||
|
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||||
|
|
||||||
|
```
|
||||||
|
{"_": "inputMessagesFilterMyMentionsUnread"}
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
Or, if you're into Lua:
|
||||||
|
|
||||||
|
|
||||||
|
```
|
||||||
|
inputMessagesFilterMyMentionsUnread={_='inputMessagesFilterMyMentionsUnread'}
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
|
44
docs/API_docs/constructors/messages_favedStickers.md
Normal file
44
docs/API_docs/constructors/messages_favedStickers.md
Normal file
@ -0,0 +1,44 @@
|
|||||||
|
---
|
||||||
|
title: messages.favedStickers
|
||||||
|
description: messages_favedStickers attributes, type and example
|
||||||
|
---
|
||||||
|
## Constructor: messages.favedStickers
|
||||||
|
[Back to constructors index](index.md)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### Attributes:
|
||||||
|
|
||||||
|
| Name | Type | Required |
|
||||||
|
|----------|---------------|----------|
|
||||||
|
|hash|[int](../types/int.md) | Yes|
|
||||||
|
|packs|Array of [StickerPack](../types/StickerPack.md) | Yes|
|
||||||
|
|stickers|Array of [Document](../types/Document.md) | Yes|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### Type: [messages\_FavedStickers](../types/messages_FavedStickers.md)
|
||||||
|
|
||||||
|
|
||||||
|
### Example:
|
||||||
|
|
||||||
|
```
|
||||||
|
$messages_favedStickers = ['_' => 'messages.favedStickers', 'hash' => int, 'packs' => [StickerPack], 'stickers' => [Document]];
|
||||||
|
```
|
||||||
|
|
||||||
|
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||||
|
|
||||||
|
```
|
||||||
|
{"_": "messages.favedStickers", "hash": int, "packs": [StickerPack], "stickers": [Document]}
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
Or, if you're into Lua:
|
||||||
|
|
||||||
|
|
||||||
|
```
|
||||||
|
messages_favedStickers={_='messages.favedStickers', hash=int, packs={StickerPack}, stickers={Document}}
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
|
@ -0,0 +1,37 @@
|
|||||||
|
---
|
||||||
|
title: messages.favedStickersNotModified
|
||||||
|
description: messages_favedStickersNotModified attributes, type and example
|
||||||
|
---
|
||||||
|
## Constructor: messages.favedStickersNotModified
|
||||||
|
[Back to constructors index](index.md)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### Type: [messages\_FavedStickers](../types/messages_FavedStickers.md)
|
||||||
|
|
||||||
|
|
||||||
|
### Example:
|
||||||
|
|
||||||
|
```
|
||||||
|
$messages_favedStickersNotModified = ['_' => 'messages.favedStickersNotModified'];
|
||||||
|
```
|
||||||
|
|
||||||
|
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||||
|
|
||||||
|
```
|
||||||
|
{"_": "messages.favedStickersNotModified"}
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
Or, if you're into Lua:
|
||||||
|
|
||||||
|
|
||||||
|
```
|
||||||
|
messages_favedStickersNotModified={_='messages.favedStickersNotModified'}
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
|
@ -0,0 +1,43 @@
|
|||||||
|
---
|
||||||
|
title: updateChannelReadMessagesContents
|
||||||
|
description: updateChannelReadMessagesContents attributes, type and example
|
||||||
|
---
|
||||||
|
## Constructor: updateChannelReadMessagesContents
|
||||||
|
[Back to constructors index](index.md)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### Attributes:
|
||||||
|
|
||||||
|
| Name | Type | Required |
|
||||||
|
|----------|---------------|----------|
|
||||||
|
|channel\_id|[int](../types/int.md) | Yes|
|
||||||
|
|messages|Array of [int](../types/int.md) | Yes|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### Type: [Update](../types/Update.md)
|
||||||
|
|
||||||
|
|
||||||
|
### Example:
|
||||||
|
|
||||||
|
```
|
||||||
|
$updateChannelReadMessagesContents = ['_' => 'updateChannelReadMessagesContents', 'channel_id' => int, 'messages' => [int]];
|
||||||
|
```
|
||||||
|
|
||||||
|
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||||
|
|
||||||
|
```
|
||||||
|
{"_": "updateChannelReadMessagesContents", "channel_id": int, "messages": [int]}
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
Or, if you're into Lua:
|
||||||
|
|
||||||
|
|
||||||
|
```
|
||||||
|
updateChannelReadMessagesContents={_='updateChannelReadMessagesContents', channel_id=int, messages={int}}
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
|
37
docs/API_docs/constructors/updateContactsReset.md
Normal file
37
docs/API_docs/constructors/updateContactsReset.md
Normal file
@ -0,0 +1,37 @@
|
|||||||
|
---
|
||||||
|
title: updateContactsReset
|
||||||
|
description: updateContactsReset attributes, type and example
|
||||||
|
---
|
||||||
|
## Constructor: updateContactsReset
|
||||||
|
[Back to constructors index](index.md)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### Type: [Update](../types/Update.md)
|
||||||
|
|
||||||
|
|
||||||
|
### Example:
|
||||||
|
|
||||||
|
```
|
||||||
|
$updateContactsReset = ['_' => 'updateContactsReset'];
|
||||||
|
```
|
||||||
|
|
||||||
|
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||||
|
|
||||||
|
```
|
||||||
|
{"_": "updateContactsReset"}
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
Or, if you're into Lua:
|
||||||
|
|
||||||
|
|
||||||
|
```
|
||||||
|
updateContactsReset={_='updateContactsReset'}
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
|
37
docs/API_docs/constructors/updateFavedStickers.md
Normal file
37
docs/API_docs/constructors/updateFavedStickers.md
Normal file
@ -0,0 +1,37 @@
|
|||||||
|
---
|
||||||
|
title: updateFavedStickers
|
||||||
|
description: updateFavedStickers attributes, type and example
|
||||||
|
---
|
||||||
|
## Constructor: updateFavedStickers
|
||||||
|
[Back to constructors index](index.md)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### Type: [Update](../types/Update.md)
|
||||||
|
|
||||||
|
|
||||||
|
### Example:
|
||||||
|
|
||||||
|
```
|
||||||
|
$updateFavedStickers = ['_' => 'updateFavedStickers'];
|
||||||
|
```
|
||||||
|
|
||||||
|
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||||
|
|
||||||
|
```
|
||||||
|
{"_": "updateFavedStickers"}
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
Or, if you're into Lua:
|
||||||
|
|
||||||
|
|
||||||
|
```
|
||||||
|
updateFavedStickers={_='updateFavedStickers'}
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
|
@ -18,6 +18,7 @@ description: updates_channelDifferenceTooLong attributes, type and example
|
|||||||
|read\_inbox\_max\_id|[int](../types/int.md) | Yes|
|
|read\_inbox\_max\_id|[int](../types/int.md) | Yes|
|
||||||
|read\_outbox\_max\_id|[int](../types/int.md) | Yes|
|
|read\_outbox\_max\_id|[int](../types/int.md) | Yes|
|
||||||
|unread\_count|[int](../types/int.md) | Yes|
|
|unread\_count|[int](../types/int.md) | Yes|
|
||||||
|
|unread\_mentions\_count|[int](../types/int.md) | Yes|
|
||||||
|messages|Array of [Message](../types/Message.md) | Yes|
|
|messages|Array of [Message](../types/Message.md) | Yes|
|
||||||
|chats|Array of [Chat](../types/Chat.md) | Yes|
|
|chats|Array of [Chat](../types/Chat.md) | Yes|
|
||||||
|users|Array of [User](../types/User.md) | Yes|
|
|users|Array of [User](../types/User.md) | Yes|
|
||||||
@ -30,13 +31,13 @@ description: updates_channelDifferenceTooLong attributes, type and example
|
|||||||
### Example:
|
### Example:
|
||||||
|
|
||||||
```
|
```
|
||||||
$updates_channelDifferenceTooLong = ['_' => 'updates.channelDifferenceTooLong', 'final' => Bool, 'pts' => int, 'timeout' => int, 'top_message' => int, 'read_inbox_max_id' => int, 'read_outbox_max_id' => int, 'unread_count' => int, 'messages' => [Message], 'chats' => [Chat], 'users' => [User]];
|
$updates_channelDifferenceTooLong = ['_' => 'updates.channelDifferenceTooLong', 'final' => Bool, 'pts' => int, 'timeout' => int, 'top_message' => int, 'read_inbox_max_id' => int, 'read_outbox_max_id' => int, 'unread_count' => int, 'unread_mentions_count' => int, 'messages' => [Message], 'chats' => [Chat], 'users' => [User]];
|
||||||
```
|
```
|
||||||
|
|
||||||
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||||
|
|
||||||
```
|
```
|
||||||
{"_": "updates.channelDifferenceTooLong", "final": Bool, "pts": int, "timeout": int, "top_message": int, "read_inbox_max_id": int, "read_outbox_max_id": int, "unread_count": int, "messages": [Message], "chats": [Chat], "users": [User]}
|
{"_": "updates.channelDifferenceTooLong", "final": Bool, "pts": int, "timeout": int, "top_message": int, "read_inbox_max_id": int, "read_outbox_max_id": int, "unread_count": int, "unread_mentions_count": int, "messages": [Message], "chats": [Chat], "users": [User]}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
@ -44,7 +45,7 @@ Or, if you're into Lua:
|
|||||||
|
|
||||||
|
|
||||||
```
|
```
|
||||||
updates_channelDifferenceTooLong={_='updates.channelDifferenceTooLong', final=Bool, pts=int, timeout=int, top_message=int, read_inbox_max_id=int, read_outbox_max_id=int, unread_count=int, messages={Message}, chats={Chat}, users={User}}
|
updates_channelDifferenceTooLong={_='updates.channelDifferenceTooLong', final=Bool, pts=int, timeout=int, top_message=int, read_inbox_max_id=int, read_outbox_max_id=int, unread_count=int, unread_mentions_count=int, messages={Message}, chats={Chat}, users={User}}
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
---
|
---
|
||||||
title: MadelineProto API documentation (layer 70)
|
title: MadelineProto API documentation (layer 71)
|
||||||
description: MadelineProto API documentation (layer 70)
|
description: MadelineProto API documentation (layer 71)
|
||||||
---
|
---
|
||||||
# MadelineProto API documentation (layer 70)
|
# MadelineProto API documentation (layer 71)
|
||||||
|
|
||||||
[Methods](methods/)
|
[Methods](methods/)
|
||||||
|
|
||||||
|
71
docs/API_docs/methods/channels_readMessageContents.md
Normal file
71
docs/API_docs/methods/channels_readMessageContents.md
Normal file
@ -0,0 +1,71 @@
|
|||||||
|
---
|
||||||
|
title: channels.readMessageContents
|
||||||
|
description: channels.readMessageContents parameters, return type and example
|
||||||
|
---
|
||||||
|
## Method: channels.readMessageContents
|
||||||
|
[Back to methods index](index.md)
|
||||||
|
|
||||||
|
|
||||||
|
### Parameters:
|
||||||
|
|
||||||
|
| Name | Type | Required |
|
||||||
|
|----------|---------------|----------|
|
||||||
|
|channel|[InputChannel](../types/InputChannel.md) | Yes|
|
||||||
|
|id|Array of [int](../types/int.md) | Yes|
|
||||||
|
|
||||||
|
|
||||||
|
### Return type: [Bool](../types/Bool.md)
|
||||||
|
|
||||||
|
### Example:
|
||||||
|
|
||||||
|
|
||||||
|
```
|
||||||
|
$MadelineProto = new \danog\MadelineProto\API();
|
||||||
|
if (isset($token)) { // Login as a bot
|
||||||
|
$MadelineProto->bot_login($token);
|
||||||
|
}
|
||||||
|
if (isset($number)) { // Login as a user
|
||||||
|
$sentCode = $MadelineProto->phone_login($number);
|
||||||
|
echo 'Enter the code you received: ';
|
||||||
|
$code = '';
|
||||||
|
for ($x = 0; $x < $sentCode['type']['length']; $x++) {
|
||||||
|
$code .= fgetc(STDIN);
|
||||||
|
}
|
||||||
|
$MadelineProto->complete_phone_login($code);
|
||||||
|
}
|
||||||
|
|
||||||
|
$Bool = $MadelineProto->channels->readMessageContents(['channel' => InputChannel, 'id' => [int], ]);
|
||||||
|
```
|
||||||
|
|
||||||
|
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
|
||||||
|
|
||||||
|
### As a bot:
|
||||||
|
|
||||||
|
POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline`
|
||||||
|
|
||||||
|
Parameters:
|
||||||
|
|
||||||
|
* method - channels.readMessageContents
|
||||||
|
* params - `{"channel": InputChannel, "id": [int], }`
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### As a user:
|
||||||
|
|
||||||
|
POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/channels.readMessageContents`
|
||||||
|
|
||||||
|
Parameters:
|
||||||
|
|
||||||
|
channel - Json encoded InputChannel
|
||||||
|
|
||||||
|
id - Json encoded array of int
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Or, if you're into Lua:
|
||||||
|
|
||||||
|
```
|
||||||
|
Bool = channels.readMessageContents({channel=InputChannel, id={int}, })
|
||||||
|
```
|
||||||
|
|
71
docs/API_docs/methods/channels_setStickers.md
Normal file
71
docs/API_docs/methods/channels_setStickers.md
Normal file
@ -0,0 +1,71 @@
|
|||||||
|
---
|
||||||
|
title: channels.setStickers
|
||||||
|
description: channels.setStickers parameters, return type and example
|
||||||
|
---
|
||||||
|
## Method: channels.setStickers
|
||||||
|
[Back to methods index](index.md)
|
||||||
|
|
||||||
|
|
||||||
|
### Parameters:
|
||||||
|
|
||||||
|
| Name | Type | Required |
|
||||||
|
|----------|---------------|----------|
|
||||||
|
|channel|[InputChannel](../types/InputChannel.md) | Yes|
|
||||||
|
|stickerset|[InputStickerSet](../types/InputStickerSet.md) | Yes|
|
||||||
|
|
||||||
|
|
||||||
|
### Return type: [Bool](../types/Bool.md)
|
||||||
|
|
||||||
|
### Example:
|
||||||
|
|
||||||
|
|
||||||
|
```
|
||||||
|
$MadelineProto = new \danog\MadelineProto\API();
|
||||||
|
if (isset($token)) { // Login as a bot
|
||||||
|
$MadelineProto->bot_login($token);
|
||||||
|
}
|
||||||
|
if (isset($number)) { // Login as a user
|
||||||
|
$sentCode = $MadelineProto->phone_login($number);
|
||||||
|
echo 'Enter the code you received: ';
|
||||||
|
$code = '';
|
||||||
|
for ($x = 0; $x < $sentCode['type']['length']; $x++) {
|
||||||
|
$code .= fgetc(STDIN);
|
||||||
|
}
|
||||||
|
$MadelineProto->complete_phone_login($code);
|
||||||
|
}
|
||||||
|
|
||||||
|
$Bool = $MadelineProto->channels->setStickers(['channel' => InputChannel, 'stickerset' => InputStickerSet, ]);
|
||||||
|
```
|
||||||
|
|
||||||
|
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
|
||||||
|
|
||||||
|
### As a bot:
|
||||||
|
|
||||||
|
POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline`
|
||||||
|
|
||||||
|
Parameters:
|
||||||
|
|
||||||
|
* method - channels.setStickers
|
||||||
|
* params - `{"channel": InputChannel, "stickerset": InputStickerSet, }`
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### As a user:
|
||||||
|
|
||||||
|
POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/channels.setStickers`
|
||||||
|
|
||||||
|
Parameters:
|
||||||
|
|
||||||
|
channel - Json encoded InputChannel
|
||||||
|
|
||||||
|
stickerset - Json encoded InputStickerSet
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Or, if you're into Lua:
|
||||||
|
|
||||||
|
```
|
||||||
|
Bool = channels.setStickers({channel=InputChannel, stickerset=InputStickerSet, })
|
||||||
|
```
|
||||||
|
|
@ -10,7 +10,7 @@ description: contacts.getContacts parameters, return type and example
|
|||||||
|
|
||||||
| Name | Type | Required |
|
| Name | Type | Required |
|
||||||
|----------|---------------|----------|
|
|----------|---------------|----------|
|
||||||
|hash|[string](../types/string.md) | Yes|
|
|hash|[int](../types/int.md) | Yes|
|
||||||
|
|
||||||
|
|
||||||
### Return type: [contacts\_Contacts](../types/contacts_Contacts.md)
|
### Return type: [contacts\_Contacts](../types/contacts_Contacts.md)
|
||||||
@ -33,7 +33,7 @@ if (isset($number)) { // Login as a user
|
|||||||
$MadelineProto->complete_phone_login($code);
|
$MadelineProto->complete_phone_login($code);
|
||||||
}
|
}
|
||||||
|
|
||||||
$contacts_Contacts = $MadelineProto->contacts->getContacts(['hash' => 'string', ]);
|
$contacts_Contacts = $MadelineProto->contacts->getContacts(['hash' => int, ]);
|
||||||
```
|
```
|
||||||
|
|
||||||
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
|
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
|
||||||
@ -45,7 +45,7 @@ POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline`
|
|||||||
Parameters:
|
Parameters:
|
||||||
|
|
||||||
* method - contacts.getContacts
|
* method - contacts.getContacts
|
||||||
* params - `{"hash": "string", }`
|
* params - `{"hash": int, }`
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -55,7 +55,7 @@ POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/contacts.getContacts`
|
|||||||
|
|
||||||
Parameters:
|
Parameters:
|
||||||
|
|
||||||
hash - Json encoded string
|
hash - Json encoded int
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -63,6 +63,6 @@ hash - Json encoded string
|
|||||||
Or, if you're into Lua:
|
Or, if you're into Lua:
|
||||||
|
|
||||||
```
|
```
|
||||||
contacts_Contacts = contacts.getContacts({hash='string', })
|
contacts_Contacts = contacts.getContacts({hash=int, })
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -11,7 +11,6 @@ description: contacts.importContacts parameters, return type and example
|
|||||||
| Name | Type | Required |
|
| Name | Type | Required |
|
||||||
|----------|---------------|----------|
|
|----------|---------------|----------|
|
||||||
|contacts|Array of [InputContact](../types/InputContact.md) | Yes|
|
|contacts|Array of [InputContact](../types/InputContact.md) | Yes|
|
||||||
|replace|[Bool](../types/Bool.md) | Yes|
|
|
||||||
|
|
||||||
|
|
||||||
### Return type: [contacts\_ImportedContacts](../types/contacts_ImportedContacts.md)
|
### Return type: [contacts\_ImportedContacts](../types/contacts_ImportedContacts.md)
|
||||||
@ -34,7 +33,7 @@ if (isset($number)) { // Login as a user
|
|||||||
$MadelineProto->complete_phone_login($code);
|
$MadelineProto->complete_phone_login($code);
|
||||||
}
|
}
|
||||||
|
|
||||||
$contacts_ImportedContacts = $MadelineProto->contacts->importContacts(['contacts' => [InputContact], 'replace' => Bool, ]);
|
$contacts_ImportedContacts = $MadelineProto->contacts->importContacts(['contacts' => [InputContact], ]);
|
||||||
```
|
```
|
||||||
|
|
||||||
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
|
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
|
||||||
@ -46,7 +45,7 @@ POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline`
|
|||||||
Parameters:
|
Parameters:
|
||||||
|
|
||||||
* method - contacts.importContacts
|
* method - contacts.importContacts
|
||||||
* params - `{"contacts": [InputContact], "replace": Bool, }`
|
* params - `{"contacts": [InputContact], }`
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -58,14 +57,12 @@ Parameters:
|
|||||||
|
|
||||||
contacts - Json encoded array of InputContact
|
contacts - Json encoded array of InputContact
|
||||||
|
|
||||||
replace - Json encoded Bool
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Or, if you're into Lua:
|
Or, if you're into Lua:
|
||||||
|
|
||||||
```
|
```
|
||||||
contacts_ImportedContacts = contacts.importContacts({contacts={InputContact}, replace=Bool, })
|
contacts_ImportedContacts = contacts.importContacts({contacts={InputContact}, })
|
||||||
```
|
```
|
||||||
|
|
||||||
|
61
docs/API_docs/methods/contacts_resetSaved.md
Normal file
61
docs/API_docs/methods/contacts_resetSaved.md
Normal file
@ -0,0 +1,61 @@
|
|||||||
|
---
|
||||||
|
title: contacts.resetSaved
|
||||||
|
description: contacts.resetSaved parameters, return type and example
|
||||||
|
---
|
||||||
|
## Method: contacts.resetSaved
|
||||||
|
[Back to methods index](index.md)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### Return type: [Bool](../types/Bool.md)
|
||||||
|
|
||||||
|
### Example:
|
||||||
|
|
||||||
|
|
||||||
|
```
|
||||||
|
$MadelineProto = new \danog\MadelineProto\API();
|
||||||
|
if (isset($token)) { // Login as a bot
|
||||||
|
$MadelineProto->bot_login($token);
|
||||||
|
}
|
||||||
|
if (isset($number)) { // Login as a user
|
||||||
|
$sentCode = $MadelineProto->phone_login($number);
|
||||||
|
echo 'Enter the code you received: ';
|
||||||
|
$code = '';
|
||||||
|
for ($x = 0; $x < $sentCode['type']['length']; $x++) {
|
||||||
|
$code .= fgetc(STDIN);
|
||||||
|
}
|
||||||
|
$MadelineProto->complete_phone_login($code);
|
||||||
|
}
|
||||||
|
|
||||||
|
$Bool = $MadelineProto->contacts->resetSaved();
|
||||||
|
```
|
||||||
|
|
||||||
|
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
|
||||||
|
|
||||||
|
### As a bot:
|
||||||
|
|
||||||
|
POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline`
|
||||||
|
|
||||||
|
Parameters:
|
||||||
|
|
||||||
|
* method - contacts.resetSaved
|
||||||
|
* params - `{}`
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### As a user:
|
||||||
|
|
||||||
|
POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/contacts.resetSaved`
|
||||||
|
|
||||||
|
Parameters:
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Or, if you're into Lua:
|
||||||
|
|
||||||
|
```
|
||||||
|
Bool = contacts.resetSaved({})
|
||||||
|
```
|
||||||
|
|
@ -149,8 +149,12 @@ $MadelineProto->[channels->leaveChannel](channels_leaveChannel.md)(\['channel' =
|
|||||||
|
|
||||||
$MadelineProto->[channels->readHistory](channels_readHistory.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'max_id' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md)<a name="channels_readHistory"></a>
|
$MadelineProto->[channels->readHistory](channels_readHistory.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'max_id' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md)<a name="channels_readHistory"></a>
|
||||||
|
|
||||||
|
$MadelineProto->[channels->readMessageContents](channels_readMessageContents.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'id' => \[[int](../types/int.md)\], \]) === [$Bool](../types/Bool.md)<a name="channels_readMessageContents"></a>
|
||||||
|
|
||||||
$MadelineProto->[channels->reportSpam](channels_reportSpam.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'user_id' => [InputUser](../types/InputUser.md), 'id' => \[[int](../types/int.md)\], \]) === [$Bool](../types/Bool.md)<a name="channels_reportSpam"></a>
|
$MadelineProto->[channels->reportSpam](channels_reportSpam.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'user_id' => [InputUser](../types/InputUser.md), 'id' => \[[int](../types/int.md)\], \]) === [$Bool](../types/Bool.md)<a name="channels_reportSpam"></a>
|
||||||
|
|
||||||
|
$MadelineProto->[channels->setStickers](channels_setStickers.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'stickerset' => [InputStickerSet](../types/InputStickerSet.md), \]) === [$Bool](../types/Bool.md)<a name="channels_setStickers"></a>
|
||||||
|
|
||||||
$MadelineProto->[channels->toggleInvites](channels_toggleInvites.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'enabled' => [Bool](../types/Bool.md), \]) === [$Updates](../types/Updates.md)<a name="channels_toggleInvites"></a>
|
$MadelineProto->[channels->toggleInvites](channels_toggleInvites.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'enabled' => [Bool](../types/Bool.md), \]) === [$Updates](../types/Updates.md)<a name="channels_toggleInvites"></a>
|
||||||
|
|
||||||
$MadelineProto->[channels->toggleSignatures](channels_toggleSignatures.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'enabled' => [Bool](../types/Bool.md), \]) === [$Updates](../types/Updates.md)<a name="channels_toggleSignatures"></a>
|
$MadelineProto->[channels->toggleSignatures](channels_toggleSignatures.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'enabled' => [Bool](../types/Bool.md), \]) === [$Updates](../types/Updates.md)<a name="channels_toggleSignatures"></a>
|
||||||
@ -170,7 +174,7 @@ $MadelineProto->[contacts->exportCard](contacts_exportCard.md)(\[\]) === [$Vecto
|
|||||||
|
|
||||||
$MadelineProto->[contacts->getBlocked](contacts_getBlocked.md)(\['offset' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) === [$contacts\_Blocked](../types/contacts_Blocked.md)<a name="contacts_getBlocked"></a>
|
$MadelineProto->[contacts->getBlocked](contacts_getBlocked.md)(\['offset' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) === [$contacts\_Blocked](../types/contacts_Blocked.md)<a name="contacts_getBlocked"></a>
|
||||||
|
|
||||||
$MadelineProto->[contacts->getContacts](contacts_getContacts.md)(\['hash' => [string](../types/string.md), \]) === [$contacts\_Contacts](../types/contacts_Contacts.md)<a name="contacts_getContacts"></a>
|
$MadelineProto->[contacts->getContacts](contacts_getContacts.md)(\['hash' => [int](../types/int.md), \]) === [$contacts\_Contacts](../types/contacts_Contacts.md)<a name="contacts_getContacts"></a>
|
||||||
|
|
||||||
$MadelineProto->[contacts->getStatuses](contacts_getStatuses.md)(\[\]) === [$Vector\_of\_ContactStatus](../types/ContactStatus.md)<a name="contacts_getStatuses"></a>
|
$MadelineProto->[contacts->getStatuses](contacts_getStatuses.md)(\[\]) === [$Vector\_of\_ContactStatus](../types/ContactStatus.md)<a name="contacts_getStatuses"></a>
|
||||||
|
|
||||||
@ -178,7 +182,9 @@ $MadelineProto->[contacts->getTopPeers](contacts_getTopPeers.md)(\['corresponden
|
|||||||
|
|
||||||
$MadelineProto->[contacts->importCard](contacts_importCard.md)(\['export_card' => \[[int](../types/int.md)\], \]) === [$User](../types/User.md)<a name="contacts_importCard"></a>
|
$MadelineProto->[contacts->importCard](contacts_importCard.md)(\['export_card' => \[[int](../types/int.md)\], \]) === [$User](../types/User.md)<a name="contacts_importCard"></a>
|
||||||
|
|
||||||
$MadelineProto->[contacts->importContacts](contacts_importContacts.md)(\['contacts' => \[[InputContact](../types/InputContact.md)\], 'replace' => [Bool](../types/Bool.md), \]) === [$contacts\_ImportedContacts](../types/contacts_ImportedContacts.md)<a name="contacts_importContacts"></a>
|
$MadelineProto->[contacts->importContacts](contacts_importContacts.md)(\['contacts' => \[[InputContact](../types/InputContact.md)\], \]) === [$contacts\_ImportedContacts](../types/contacts_ImportedContacts.md)<a name="contacts_importContacts"></a>
|
||||||
|
|
||||||
|
$MadelineProto->[contacts->resetSaved](contacts_resetSaved.md)(\[\]) === [$Bool](../types/Bool.md)<a name="contacts_resetSaved"></a>
|
||||||
|
|
||||||
$MadelineProto->[contacts->resetTopPeerRating](contacts_resetTopPeerRating.md)(\['category' => [TopPeerCategory](../types/TopPeerCategory.md), 'peer' => [InputPeer](../types/InputPeer.md), \]) === [$Bool](../types/Bool.md)<a name="contacts_resetTopPeerRating"></a>
|
$MadelineProto->[contacts->resetTopPeerRating](contacts_resetTopPeerRating.md)(\['category' => [TopPeerCategory](../types/TopPeerCategory.md), 'peer' => [InputPeer](../types/InputPeer.md), \]) === [$Bool](../types/Bool.md)<a name="contacts_resetTopPeerRating"></a>
|
||||||
|
|
||||||
@ -275,6 +281,8 @@ $MadelineProto->[messages->editMessage](messages_editMessage.md)(\['no_webpage'
|
|||||||
|
|
||||||
$MadelineProto->[messages->exportChatInvite](messages_exportChatInvite.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$ExportedChatInvite](../types/ExportedChatInvite.md)<a name="messages_exportChatInvite"></a>
|
$MadelineProto->[messages->exportChatInvite](messages_exportChatInvite.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$ExportedChatInvite](../types/ExportedChatInvite.md)<a name="messages_exportChatInvite"></a>
|
||||||
|
|
||||||
|
$MadelineProto->[messages->faveSticker](messages_faveSticker.md)(\['id' => [InputDocument](../types/InputDocument.md), 'unfave' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md)<a name="messages_faveSticker"></a>
|
||||||
|
|
||||||
$MadelineProto->[messages->forwardMessage](messages_forwardMessage.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'id' => [int](../types/int.md), \]) === [$Updates](../types/Updates.md)<a name="messages_forwardMessage"></a>
|
$MadelineProto->[messages->forwardMessage](messages_forwardMessage.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'id' => [int](../types/int.md), \]) === [$Updates](../types/Updates.md)<a name="messages_forwardMessage"></a>
|
||||||
|
|
||||||
$MadelineProto->[messages->forwardMessages](messages_forwardMessages.md)(\['silent' => [Bool](../types/Bool.md), 'background' => [Bool](../types/Bool.md), 'with_my_score' => [Bool](../types/Bool.md), 'from_peer' => [InputPeer](../types/InputPeer.md), 'id' => \[[int](../types/int.md)\], 'to_peer' => [InputPeer](../types/InputPeer.md), \]) === [$Updates](../types/Updates.md)<a name="messages_forwardMessages"></a>
|
$MadelineProto->[messages->forwardMessages](messages_forwardMessages.md)(\['silent' => [Bool](../types/Bool.md), 'background' => [Bool](../types/Bool.md), 'with_my_score' => [Bool](../types/Bool.md), 'from_peer' => [InputPeer](../types/InputPeer.md), 'id' => \[[int](../types/int.md)\], 'to_peer' => [InputPeer](../types/InputPeer.md), \]) === [$Updates](../types/Updates.md)<a name="messages_forwardMessages"></a>
|
||||||
@ -301,6 +309,8 @@ $MadelineProto->[messages->getDialogs](messages_getDialogs.md)(\['exclude_pinned
|
|||||||
|
|
||||||
$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)<a name="messages_getDocumentByHash"></a>
|
$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)<a name="messages_getDocumentByHash"></a>
|
||||||
|
|
||||||
|
$MadelineProto->[messages->getFavedStickers](messages_getFavedStickers.md)(\['hash' => [int](../types/int.md), \]) === [$messages\_FavedStickers](../types/messages_FavedStickers.md)<a name="messages_getFavedStickers"></a>
|
||||||
|
|
||||||
$MadelineProto->[messages->getFeaturedStickers](messages_getFeaturedStickers.md)(\['hash' => [int](../types/int.md), \]) === [$messages\_FeaturedStickers](../types/messages_FeaturedStickers.md)<a name="messages_getFeaturedStickers"></a>
|
$MadelineProto->[messages->getFeaturedStickers](messages_getFeaturedStickers.md)(\['hash' => [int](../types/int.md), \]) === [$messages\_FeaturedStickers](../types/messages_FeaturedStickers.md)<a name="messages_getFeaturedStickers"></a>
|
||||||
|
|
||||||
$MadelineProto->[messages->getFullChat](messages_getFullChat.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$messages\_ChatFull](../types/messages_ChatFull.md)<a name="messages_getFullChat"></a>
|
$MadelineProto->[messages->getFullChat](messages_getFullChat.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), \]) === [$messages\_ChatFull](../types/messages_ChatFull.md)<a name="messages_getFullChat"></a>
|
||||||
@ -333,6 +343,8 @@ $MadelineProto->[messages->getSavedGifs](messages_getSavedGifs.md)(\['hash' => [
|
|||||||
|
|
||||||
$MadelineProto->[messages->getStickerSet](messages_getStickerSet.md)(\['stickerset' => [InputStickerSet](../types/InputStickerSet.md), \]) === [$messages\_StickerSet](../types/messages_StickerSet.md)<a name="messages_getStickerSet"></a>
|
$MadelineProto->[messages->getStickerSet](messages_getStickerSet.md)(\['stickerset' => [InputStickerSet](../types/InputStickerSet.md), \]) === [$messages\_StickerSet](../types/messages_StickerSet.md)<a name="messages_getStickerSet"></a>
|
||||||
|
|
||||||
|
$MadelineProto->[messages->getUnreadMentions](messages_getUnreadMentions.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'offset_id' => [int](../types/int.md), 'add_offset' => [int](../types/int.md), 'limit' => [int](../types/int.md), 'max_id' => [int](../types/int.md), 'min_id' => [int](../types/int.md), \]) === [$messages\_Messages](../types/messages_Messages.md)<a name="messages_getUnreadMentions"></a>
|
||||||
|
|
||||||
$MadelineProto->[messages->getWebPage](messages_getWebPage.md)(\['url' => [string](../types/string.md), 'hash' => [int](../types/int.md), \]) === [$WebPage](../types/WebPage.md)<a name="messages_getWebPage"></a>
|
$MadelineProto->[messages->getWebPage](messages_getWebPage.md)(\['url' => [string](../types/string.md), 'hash' => [int](../types/int.md), \]) === [$WebPage](../types/WebPage.md)<a name="messages_getWebPage"></a>
|
||||||
|
|
||||||
$MadelineProto->[messages->getWebPagePreview](messages_getWebPagePreview.md)(\['message' => [string](../types/string.md), \]) === [$MessageMedia](../types/MessageMedia.md)<a name="messages_getWebPagePreview"></a>
|
$MadelineProto->[messages->getWebPagePreview](messages_getWebPagePreview.md)(\['message' => [string](../types/string.md), \]) === [$MessageMedia](../types/MessageMedia.md)<a name="messages_getWebPagePreview"></a>
|
||||||
@ -373,7 +385,7 @@ $MadelineProto->[messages->saveGif](messages_saveGif.md)(\['id' => [InputDocumen
|
|||||||
|
|
||||||
$MadelineProto->[messages->saveRecentSticker](messages_saveRecentSticker.md)(\['attached' => [Bool](../types/Bool.md), 'id' => [InputDocument](../types/InputDocument.md), 'unsave' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md)<a name="messages_saveRecentSticker"></a>
|
$MadelineProto->[messages->saveRecentSticker](messages_saveRecentSticker.md)(\['attached' => [Bool](../types/Bool.md), 'id' => [InputDocument](../types/InputDocument.md), 'unsave' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md)<a name="messages_saveRecentSticker"></a>
|
||||||
|
|
||||||
$MadelineProto->[messages->search](messages_search.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'q' => [string](../types/string.md), 'from_id' => [InputUser](../types/InputUser.md), 'filter' => [MessagesFilter](../types/MessagesFilter.md), 'min_date' => [int](../types/int.md), 'max_date' => [int](../types/int.md), 'offset' => [int](../types/int.md), 'max_id' => [int](../types/int.md), 'limit' => [int](../types/int.md), \]) === [$messages\_Messages](../types/messages_Messages.md)<a name="messages_search"></a>
|
$MadelineProto->[messages->search](messages_search.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'q' => [string](../types/string.md), 'from_id' => [InputUser](../types/InputUser.md), 'filter' => [MessagesFilter](../types/MessagesFilter.md), 'min_date' => [int](../types/int.md), 'max_date' => [int](../types/int.md), 'offset_id' => [int](../types/int.md), 'add_offset' => [int](../types/int.md), 'limit' => [int](../types/int.md), 'max_id' => [int](../types/int.md), 'min_id' => [int](../types/int.md), \]) === [$messages\_Messages](../types/messages_Messages.md)<a name="messages_search"></a>
|
||||||
|
|
||||||
$MadelineProto->[messages->searchGifs](messages_searchGifs.md)(\['q' => [string](../types/string.md), 'offset' => [int](../types/int.md), \]) === [$messages\_FoundGifs](../types/messages_FoundGifs.md)<a name="messages_searchGifs"></a>
|
$MadelineProto->[messages->searchGifs](messages_searchGifs.md)(\['q' => [string](../types/string.md), 'offset' => [int](../types/int.md), \]) === [$messages\_FoundGifs](../types/messages_FoundGifs.md)<a name="messages_searchGifs"></a>
|
||||||
|
|
||||||
|
71
docs/API_docs/methods/messages_faveSticker.md
Normal file
71
docs/API_docs/methods/messages_faveSticker.md
Normal file
@ -0,0 +1,71 @@
|
|||||||
|
---
|
||||||
|
title: messages.faveSticker
|
||||||
|
description: messages.faveSticker parameters, return type and example
|
||||||
|
---
|
||||||
|
## Method: messages.faveSticker
|
||||||
|
[Back to methods index](index.md)
|
||||||
|
|
||||||
|
|
||||||
|
### Parameters:
|
||||||
|
|
||||||
|
| Name | Type | Required |
|
||||||
|
|----------|---------------|----------|
|
||||||
|
|id|[InputDocument](../types/InputDocument.md) | Yes|
|
||||||
|
|unfave|[Bool](../types/Bool.md) | Yes|
|
||||||
|
|
||||||
|
|
||||||
|
### Return type: [Bool](../types/Bool.md)
|
||||||
|
|
||||||
|
### Example:
|
||||||
|
|
||||||
|
|
||||||
|
```
|
||||||
|
$MadelineProto = new \danog\MadelineProto\API();
|
||||||
|
if (isset($token)) { // Login as a bot
|
||||||
|
$MadelineProto->bot_login($token);
|
||||||
|
}
|
||||||
|
if (isset($number)) { // Login as a user
|
||||||
|
$sentCode = $MadelineProto->phone_login($number);
|
||||||
|
echo 'Enter the code you received: ';
|
||||||
|
$code = '';
|
||||||
|
for ($x = 0; $x < $sentCode['type']['length']; $x++) {
|
||||||
|
$code .= fgetc(STDIN);
|
||||||
|
}
|
||||||
|
$MadelineProto->complete_phone_login($code);
|
||||||
|
}
|
||||||
|
|
||||||
|
$Bool = $MadelineProto->messages->faveSticker(['id' => InputDocument, 'unfave' => Bool, ]);
|
||||||
|
```
|
||||||
|
|
||||||
|
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
|
||||||
|
|
||||||
|
### As a bot:
|
||||||
|
|
||||||
|
POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline`
|
||||||
|
|
||||||
|
Parameters:
|
||||||
|
|
||||||
|
* method - messages.faveSticker
|
||||||
|
* params - `{"id": InputDocument, "unfave": Bool, }`
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### As a user:
|
||||||
|
|
||||||
|
POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/messages.faveSticker`
|
||||||
|
|
||||||
|
Parameters:
|
||||||
|
|
||||||
|
id - Json encoded InputDocument
|
||||||
|
|
||||||
|
unfave - Json encoded Bool
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Or, if you're into Lua:
|
||||||
|
|
||||||
|
```
|
||||||
|
Bool = messages.faveSticker({id=InputDocument, unfave=Bool, })
|
||||||
|
```
|
||||||
|
|
68
docs/API_docs/methods/messages_getFavedStickers.md
Normal file
68
docs/API_docs/methods/messages_getFavedStickers.md
Normal file
@ -0,0 +1,68 @@
|
|||||||
|
---
|
||||||
|
title: messages.getFavedStickers
|
||||||
|
description: messages.getFavedStickers parameters, return type and example
|
||||||
|
---
|
||||||
|
## Method: messages.getFavedStickers
|
||||||
|
[Back to methods index](index.md)
|
||||||
|
|
||||||
|
|
||||||
|
### Parameters:
|
||||||
|
|
||||||
|
| Name | Type | Required |
|
||||||
|
|----------|---------------|----------|
|
||||||
|
|hash|[int](../types/int.md) | Yes|
|
||||||
|
|
||||||
|
|
||||||
|
### Return type: [messages\_FavedStickers](../types/messages_FavedStickers.md)
|
||||||
|
|
||||||
|
### Example:
|
||||||
|
|
||||||
|
|
||||||
|
```
|
||||||
|
$MadelineProto = new \danog\MadelineProto\API();
|
||||||
|
if (isset($token)) { // Login as a bot
|
||||||
|
$MadelineProto->bot_login($token);
|
||||||
|
}
|
||||||
|
if (isset($number)) { // Login as a user
|
||||||
|
$sentCode = $MadelineProto->phone_login($number);
|
||||||
|
echo 'Enter the code you received: ';
|
||||||
|
$code = '';
|
||||||
|
for ($x = 0; $x < $sentCode['type']['length']; $x++) {
|
||||||
|
$code .= fgetc(STDIN);
|
||||||
|
}
|
||||||
|
$MadelineProto->complete_phone_login($code);
|
||||||
|
}
|
||||||
|
|
||||||
|
$messages_FavedStickers = $MadelineProto->messages->getFavedStickers(['hash' => int, ]);
|
||||||
|
```
|
||||||
|
|
||||||
|
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
|
||||||
|
|
||||||
|
### As a bot:
|
||||||
|
|
||||||
|
POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline`
|
||||||
|
|
||||||
|
Parameters:
|
||||||
|
|
||||||
|
* method - messages.getFavedStickers
|
||||||
|
* params - `{"hash": int, }`
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### As a user:
|
||||||
|
|
||||||
|
POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/messages.getFavedStickers`
|
||||||
|
|
||||||
|
Parameters:
|
||||||
|
|
||||||
|
hash - Json encoded int
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Or, if you're into Lua:
|
||||||
|
|
||||||
|
```
|
||||||
|
messages_FavedStickers = messages.getFavedStickers({hash=int, })
|
||||||
|
```
|
||||||
|
|
83
docs/API_docs/methods/messages_getUnreadMentions.md
Normal file
83
docs/API_docs/methods/messages_getUnreadMentions.md
Normal file
@ -0,0 +1,83 @@
|
|||||||
|
---
|
||||||
|
title: messages.getUnreadMentions
|
||||||
|
description: messages.getUnreadMentions parameters, return type and example
|
||||||
|
---
|
||||||
|
## Method: messages.getUnreadMentions
|
||||||
|
[Back to methods index](index.md)
|
||||||
|
|
||||||
|
|
||||||
|
### Parameters:
|
||||||
|
|
||||||
|
| Name | Type | Required |
|
||||||
|
|----------|---------------|----------|
|
||||||
|
|peer|[InputPeer](../types/InputPeer.md) | Yes|
|
||||||
|
|offset\_id|[int](../types/int.md) | Yes|
|
||||||
|
|add\_offset|[int](../types/int.md) | Yes|
|
||||||
|
|limit|[int](../types/int.md) | Yes|
|
||||||
|
|max\_id|[int](../types/int.md) | Yes|
|
||||||
|
|min\_id|[int](../types/int.md) | Yes|
|
||||||
|
|
||||||
|
|
||||||
|
### Return type: [messages\_Messages](../types/messages_Messages.md)
|
||||||
|
|
||||||
|
### Example:
|
||||||
|
|
||||||
|
|
||||||
|
```
|
||||||
|
$MadelineProto = new \danog\MadelineProto\API();
|
||||||
|
if (isset($token)) { // Login as a bot
|
||||||
|
$MadelineProto->bot_login($token);
|
||||||
|
}
|
||||||
|
if (isset($number)) { // Login as a user
|
||||||
|
$sentCode = $MadelineProto->phone_login($number);
|
||||||
|
echo 'Enter the code you received: ';
|
||||||
|
$code = '';
|
||||||
|
for ($x = 0; $x < $sentCode['type']['length']; $x++) {
|
||||||
|
$code .= fgetc(STDIN);
|
||||||
|
}
|
||||||
|
$MadelineProto->complete_phone_login($code);
|
||||||
|
}
|
||||||
|
|
||||||
|
$messages_Messages = $MadelineProto->messages->getUnreadMentions(['peer' => InputPeer, 'offset_id' => int, 'add_offset' => int, 'limit' => int, 'max_id' => int, 'min_id' => int, ]);
|
||||||
|
```
|
||||||
|
|
||||||
|
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
|
||||||
|
|
||||||
|
### As a bot:
|
||||||
|
|
||||||
|
POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline`
|
||||||
|
|
||||||
|
Parameters:
|
||||||
|
|
||||||
|
* method - messages.getUnreadMentions
|
||||||
|
* params - `{"peer": InputPeer, "offset_id": int, "add_offset": int, "limit": int, "max_id": int, "min_id": int, }`
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### As a user:
|
||||||
|
|
||||||
|
POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/messages.getUnreadMentions`
|
||||||
|
|
||||||
|
Parameters:
|
||||||
|
|
||||||
|
peer - Json encoded InputPeer
|
||||||
|
|
||||||
|
offset_id - Json encoded int
|
||||||
|
|
||||||
|
add_offset - Json encoded int
|
||||||
|
|
||||||
|
limit - Json encoded int
|
||||||
|
|
||||||
|
max_id - Json encoded int
|
||||||
|
|
||||||
|
min_id - Json encoded int
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Or, if you're into Lua:
|
||||||
|
|
||||||
|
```
|
||||||
|
messages_Messages = messages.getUnreadMentions({peer=InputPeer, offset_id=int, add_offset=int, limit=int, max_id=int, min_id=int, })
|
||||||
|
```
|
||||||
|
|
@ -16,9 +16,11 @@ description: messages.search parameters, return type and example
|
|||||||
|filter|[MessagesFilter](../types/MessagesFilter.md) | Yes|
|
|filter|[MessagesFilter](../types/MessagesFilter.md) | Yes|
|
||||||
|min\_date|[int](../types/int.md) | Yes|
|
|min\_date|[int](../types/int.md) | Yes|
|
||||||
|max\_date|[int](../types/int.md) | Yes|
|
|max\_date|[int](../types/int.md) | Yes|
|
||||||
|offset|[int](../types/int.md) | Yes|
|
|offset\_id|[int](../types/int.md) | Yes|
|
||||||
|max\_id|[int](../types/int.md) | Yes|
|
|add\_offset|[int](../types/int.md) | Yes|
|
||||||
|limit|[int](../types/int.md) | Yes|
|
|limit|[int](../types/int.md) | Yes|
|
||||||
|
|max\_id|[int](../types/int.md) | Yes|
|
||||||
|
|min\_id|[int](../types/int.md) | Yes|
|
||||||
|
|
||||||
|
|
||||||
### Return type: [messages\_Messages](../types/messages_Messages.md)
|
### Return type: [messages\_Messages](../types/messages_Messages.md)
|
||||||
@ -41,7 +43,7 @@ if (isset($number)) { // Login as a user
|
|||||||
$MadelineProto->complete_phone_login($code);
|
$MadelineProto->complete_phone_login($code);
|
||||||
}
|
}
|
||||||
|
|
||||||
$messages_Messages = $MadelineProto->messages->search(['peer' => InputPeer, 'q' => 'string', 'from_id' => InputUser, 'filter' => MessagesFilter, 'min_date' => int, 'max_date' => int, 'offset' => int, 'max_id' => int, 'limit' => int, ]);
|
$messages_Messages = $MadelineProto->messages->search(['peer' => InputPeer, 'q' => 'string', 'from_id' => InputUser, 'filter' => MessagesFilter, 'min_date' => int, 'max_date' => int, 'offset_id' => int, 'add_offset' => int, 'limit' => int, 'max_id' => int, 'min_id' => int, ]);
|
||||||
```
|
```
|
||||||
|
|
||||||
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
|
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
|
||||||
@ -53,7 +55,7 @@ POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline`
|
|||||||
Parameters:
|
Parameters:
|
||||||
|
|
||||||
* method - messages.search
|
* method - messages.search
|
||||||
* params - `{"peer": InputPeer, "q": "string", "from_id": InputUser, "filter": MessagesFilter, "min_date": int, "max_date": int, "offset": int, "max_id": int, "limit": int, }`
|
* params - `{"peer": InputPeer, "q": "string", "from_id": InputUser, "filter": MessagesFilter, "min_date": int, "max_date": int, "offset_id": int, "add_offset": int, "limit": int, "max_id": int, "min_id": int, }`
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -75,11 +77,15 @@ min_date - Json encoded int
|
|||||||
|
|
||||||
max_date - Json encoded int
|
max_date - Json encoded int
|
||||||
|
|
||||||
offset - Json encoded int
|
offset_id - Json encoded int
|
||||||
|
|
||||||
|
add_offset - Json encoded int
|
||||||
|
|
||||||
|
limit - Json encoded int
|
||||||
|
|
||||||
max_id - Json encoded int
|
max_id - Json encoded int
|
||||||
|
|
||||||
limit - Json encoded int
|
min_id - Json encoded int
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -87,6 +93,6 @@ limit - Json encoded int
|
|||||||
Or, if you're into Lua:
|
Or, if you're into Lua:
|
||||||
|
|
||||||
```
|
```
|
||||||
messages_Messages = messages.search({peer=InputPeer, q='string', from_id=InputUser, filter=MessagesFilter, min_date=int, max_date=int, offset=int, max_id=int, limit=int, })
|
messages_Messages = messages.search({peer=InputPeer, q='string', from_id=InputUser, filter=MessagesFilter, min_date=int, max_date=int, offset_id=int, add_offset=int, limit=int, max_id=int, min_id=int, })
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -37,6 +37,8 @@ description: constructors and methods of type ChannelAdminLogEventAction
|
|||||||
|
|
||||||
[channelAdminLogEventActionParticipantToggleAdmin](../constructors/channelAdminLogEventActionParticipantToggleAdmin.md)
|
[channelAdminLogEventActionParticipantToggleAdmin](../constructors/channelAdminLogEventActionParticipantToggleAdmin.md)
|
||||||
|
|
||||||
|
[channelAdminLogEventActionChangeStickerSet](../constructors/channelAdminLogEventActionChangeStickerSet.md)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
### Methods that return an object of this type (methods):
|
### Methods that return an object of this type (methods):
|
||||||
|
@ -37,6 +37,10 @@ description: constructors and methods of type MessagesFilter
|
|||||||
|
|
||||||
[inputMessagesFilterRoundVideo](../constructors/inputMessagesFilterRoundVideo.md)
|
[inputMessagesFilterRoundVideo](../constructors/inputMessagesFilterRoundVideo.md)
|
||||||
|
|
||||||
|
[inputMessagesFilterMyMentions](../constructors/inputMessagesFilterMyMentions.md)
|
||||||
|
|
||||||
|
[inputMessagesFilterMyMentionsUnread](../constructors/inputMessagesFilterMyMentionsUnread.md)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
### Methods that return an object of this type (methods):
|
### Methods that return an object of this type (methods):
|
||||||
|
@ -93,6 +93,7 @@ Call states (these constants are incrementing integers, thus can be compared lik
|
|||||||
* `getDebugString()` - Gets VoIPController debug string
|
* `getDebugString()` - Gets VoIPController debug string
|
||||||
* `getLastError()` - Gets the last error as a VoIPController error constant
|
* `getLastError()` - Gets the last error as a VoIPController error constant
|
||||||
* `getVersion()` - Gets VoIPController version
|
* `getVersion()` - Gets VoIPController version
|
||||||
|
* `getSignalBarsCount()` - Gets number of signal bars (0-4)
|
||||||
|
|
||||||
* `parseConfig()` - Parses the configuration
|
* `parseConfig()` - Parses the configuration
|
||||||
|
|
||||||
|
@ -135,6 +135,12 @@ Contains notifications about data changes
|
|||||||
|
|
||||||
[updateLangPack](../constructors/updateLangPack.md)
|
[updateLangPack](../constructors/updateLangPack.md)
|
||||||
|
|
||||||
|
[updateFavedStickers](../constructors/updateFavedStickers.md)
|
||||||
|
|
||||||
|
[updateChannelReadMessagesContents](../constructors/updateChannelReadMessagesContents.md)
|
||||||
|
|
||||||
|
[updateContactsReset](../constructors/updateContactsReset.md)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
### Methods that return an object of this type (methods):
|
### Methods that return an object of this type (methods):
|
||||||
|
@ -420,6 +420,8 @@ description: List of types
|
|||||||
|
|
||||||
[messages\_Dialogs](messages_Dialogs.md)<a name="messages_Dialogs"></a>
|
[messages\_Dialogs](messages_Dialogs.md)<a name="messages_Dialogs"></a>
|
||||||
|
|
||||||
|
[messages\_FavedStickers](messages_FavedStickers.md)<a name="messages_FavedStickers"></a>
|
||||||
|
|
||||||
[messages\_FeaturedStickers](messages_FeaturedStickers.md)<a name="messages_FeaturedStickers"></a>
|
[messages\_FeaturedStickers](messages_FeaturedStickers.md)<a name="messages_FeaturedStickers"></a>
|
||||||
|
|
||||||
[messages\_FoundGifs](messages_FoundGifs.md)<a name="messages_FoundGifs"></a>
|
[messages\_FoundGifs](messages_FoundGifs.md)<a name="messages_FoundGifs"></a>
|
||||||
|
23
docs/API_docs/types/messages_FavedStickers.md
Normal file
23
docs/API_docs/types/messages_FavedStickers.md
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
---
|
||||||
|
title: messages_FavedStickers
|
||||||
|
description: constructors and methods of type messages_FavedStickers
|
||||||
|
---
|
||||||
|
## Type: messages\_FavedStickers
|
||||||
|
[Back to types index](index.md)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### Possible values (constructors):
|
||||||
|
|
||||||
|
[messages\_favedStickersNotModified](../constructors/messages_favedStickersNotModified.md)
|
||||||
|
|
||||||
|
[messages\_favedStickers](../constructors/messages_favedStickers.md)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### Methods that return an object of this type (methods):
|
||||||
|
|
||||||
|
[$MadelineProto->messages->getFavedStickers](../methods/messages_getFavedStickers.md)
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -27,6 +27,8 @@ description: constructors and methods of type messages_Messages
|
|||||||
|
|
||||||
[$MadelineProto->messages->searchGlobal](../methods/messages_searchGlobal.md)
|
[$MadelineProto->messages->searchGlobal](../methods/messages_searchGlobal.md)
|
||||||
|
|
||||||
|
[$MadelineProto->messages->getUnreadMentions](../methods/messages_getUnreadMentions.md)
|
||||||
|
|
||||||
[$MadelineProto->channels->getMessages](../methods/channels_getMessages.md)
|
[$MadelineProto->channels->getMessages](../methods/channels_getMessages.md)
|
||||||
|
|
||||||
|
|
||||||
|
@ -123,7 +123,7 @@ You can find examples for nearly every MadelineProto function in
|
|||||||
|
|
||||||
## Methods
|
## Methods
|
||||||
|
|
||||||
A list of all of the methods that can be called with MadelineProto can be found here: [here (layer 70)](https://daniil.it/MadelineProto/API_docs/).
|
A list of all of the methods that can be called with MadelineProto can be found here: [here (layer 71)](https://daniil.it/MadelineProto/API_docs/).
|
||||||
|
|
||||||
If an object of type User, InputUser, Chat, InputChannel, Peer or InputPeer must be provided as a parameter to a method, you can substitute it with the user/group/channel's username (`@username`) or bot API id (`-1029449`, `1249421`, `-100412412901`).
|
If an object of type User, InputUser, Chat, InputChannel, Peer or InputPeer must be provided as a parameter to a method, you can substitute it with the user/group/channel's username (`@username`) or bot API id (`-1029449`, `1249421`, `-100412412901`).
|
||||||
|
|
||||||
|
@ -93,6 +93,7 @@ Call states (these constants are incrementing integers, thus can be compared lik
|
|||||||
* `getDebugString()` - Gets VoIPController debug string
|
* `getDebugString()` - Gets VoIPController debug string
|
||||||
* `getLastError()` - Gets the last error as a VoIPController error constant
|
* `getLastError()` - Gets the last error as a VoIPController error constant
|
||||||
* `getVersion()` - Gets VoIPController version
|
* `getVersion()` - Gets VoIPController version
|
||||||
|
* `getSignalBarsCount()` - Gets number of signal bars (0-4)
|
||||||
|
|
||||||
* `parseConfig()` - Parses the configuration
|
* `parseConfig()` - Parses the configuration
|
||||||
|
|
||||||
|
@ -93,6 +93,7 @@ Call states (these constants are incrementing integers, thus can be compared lik
|
|||||||
* `getDebugString()` - Gets VoIPController debug string
|
* `getDebugString()` - Gets VoIPController debug string
|
||||||
* `getLastError()` - Gets the last error as a VoIPController error constant
|
* `getLastError()` - Gets the last error as a VoIPController error constant
|
||||||
* `getVersion()` - Gets VoIPController version
|
* `getVersion()` - Gets VoIPController version
|
||||||
|
* `getSignalBarsCount()` - Gets number of signal bars (0-4)
|
||||||
|
|
||||||
* `parseConfig()` - Parses the configuration
|
* `parseConfig()` - Parses the configuration
|
||||||
|
|
||||||
|
@ -93,6 +93,7 @@ Call states (these constants are incrementing integers, thus can be compared lik
|
|||||||
* `getDebugString()` - Gets VoIPController debug string
|
* `getDebugString()` - Gets VoIPController debug string
|
||||||
* `getLastError()` - Gets the last error as a VoIPController error constant
|
* `getLastError()` - Gets the last error as a VoIPController error constant
|
||||||
* `getVersion()` - Gets VoIPController version
|
* `getVersion()` - Gets VoIPController version
|
||||||
|
* `getSignalBarsCount()` - Gets number of signal bars (0-4)
|
||||||
|
|
||||||
* `parseConfig()` - Parses the configuration
|
* `parseConfig()` - Parses the configuration
|
||||||
|
|
||||||
|
@ -93,6 +93,7 @@ Call states (these constants are incrementing integers, thus can be compared lik
|
|||||||
* `getDebugString()` - Gets VoIPController debug string
|
* `getDebugString()` - Gets VoIPController debug string
|
||||||
* `getLastError()` - Gets the last error as a VoIPController error constant
|
* `getLastError()` - Gets the last error as a VoIPController error constant
|
||||||
* `getVersion()` - Gets VoIPController version
|
* `getVersion()` - Gets VoIPController version
|
||||||
|
* `getSignalBarsCount()` - Gets number of signal bars (0-4)
|
||||||
|
|
||||||
* `parseConfig()` - Parses the configuration
|
* `parseConfig()` - Parses the configuration
|
||||||
|
|
||||||
|
14
old_docs/API_docs_v70/README.md
Normal file
14
old_docs/API_docs_v70/README.md
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
---
|
||||||
|
title: MadelineProto API documentation (layer v70)
|
||||||
|
description: MadelineProto API documentation (layer v70)
|
||||||
|
---
|
||||||
|
# MadelineProto API documentation (layer v70)
|
||||||
|
|
||||||
|
[Methods](methods/)
|
||||||
|
|
||||||
|
[Constructors](constructors/)
|
||||||
|
|
||||||
|
[Types](types/)
|
||||||
|
|
||||||
|
|
||||||
|
[Back to main documentation](..)
|
1728
old_docs/API_docs_v70/constructors/README.md
Normal file
1728
old_docs/API_docs_v70/constructors/README.md
Normal file
File diff suppressed because it is too large
Load Diff
42
old_docs/API_docs_v70/constructors/accountDaysTTL.md
Normal file
42
old_docs/API_docs_v70/constructors/accountDaysTTL.md
Normal file
@ -0,0 +1,42 @@
|
|||||||
|
---
|
||||||
|
title: accountDaysTTL
|
||||||
|
description: accountDaysTTL attributes, type and example
|
||||||
|
---
|
||||||
|
## Constructor: accountDaysTTL
|
||||||
|
[Back to constructors index](index.md)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### Attributes:
|
||||||
|
|
||||||
|
| Name | Type | Required |
|
||||||
|
|----------|---------------|----------|
|
||||||
|
|days|[int](../types/int.md) | Yes|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### Type: [AccountDaysTTL](../types/AccountDaysTTL.md)
|
||||||
|
|
||||||
|
|
||||||
|
### Example:
|
||||||
|
|
||||||
|
```
|
||||||
|
$accountDaysTTL = ['_' => 'accountDaysTTL', 'days' => int];
|
||||||
|
```
|
||||||
|
|
||||||
|
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||||
|
|
||||||
|
```
|
||||||
|
{"_": "accountDaysTTL", "days": int}
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
Or, if you're into Lua:
|
||||||
|
|
||||||
|
|
||||||
|
```
|
||||||
|
accountDaysTTL={_='accountDaysTTL', days=int}
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
|
42
old_docs/API_docs_v70/constructors/account_authorizations.md
Normal file
42
old_docs/API_docs_v70/constructors/account_authorizations.md
Normal file
@ -0,0 +1,42 @@
|
|||||||
|
---
|
||||||
|
title: account.authorizations
|
||||||
|
description: account_authorizations attributes, type and example
|
||||||
|
---
|
||||||
|
## Constructor: account.authorizations
|
||||||
|
[Back to constructors index](index.md)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### Attributes:
|
||||||
|
|
||||||
|
| Name | Type | Required |
|
||||||
|
|----------|---------------|----------|
|
||||||
|
|authorizations|Array of [Authorization](../types/Authorization.md) | Yes|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### Type: [account\_Authorizations](../types/account_Authorizations.md)
|
||||||
|
|
||||||
|
|
||||||
|
### Example:
|
||||||
|
|
||||||
|
```
|
||||||
|
$account_authorizations = ['_' => 'account.authorizations', 'authorizations' => [Authorization]];
|
||||||
|
```
|
||||||
|
|
||||||
|
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||||
|
|
||||||
|
```
|
||||||
|
{"_": "account.authorizations", "authorizations": [Authorization]}
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
Or, if you're into Lua:
|
||||||
|
|
||||||
|
|
||||||
|
```
|
||||||
|
account_authorizations={_='account.authorizations', authorizations={Authorization}}
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
|
43
old_docs/API_docs_v70/constructors/account_noPassword.md
Normal file
43
old_docs/API_docs_v70/constructors/account_noPassword.md
Normal file
@ -0,0 +1,43 @@
|
|||||||
|
---
|
||||||
|
title: account.noPassword
|
||||||
|
description: account_noPassword attributes, type and example
|
||||||
|
---
|
||||||
|
## Constructor: account.noPassword
|
||||||
|
[Back to constructors index](index.md)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### Attributes:
|
||||||
|
|
||||||
|
| Name | Type | Required |
|
||||||
|
|----------|---------------|----------|
|
||||||
|
|new\_salt|[bytes](../types/bytes.md) | Yes|
|
||||||
|
|email\_unconfirmed\_pattern|[string](../types/string.md) | Yes|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### Type: [account\_Password](../types/account_Password.md)
|
||||||
|
|
||||||
|
|
||||||
|
### Example:
|
||||||
|
|
||||||
|
```
|
||||||
|
$account_noPassword = ['_' => 'account.noPassword', 'new_salt' => 'bytes', 'email_unconfirmed_pattern' => 'string'];
|
||||||
|
```
|
||||||
|
|
||||||
|
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||||
|
|
||||||
|
```
|
||||||
|
{"_": "account.noPassword", "new_salt": "bytes", "email_unconfirmed_pattern": "string"}
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
Or, if you're into Lua:
|
||||||
|
|
||||||
|
|
||||||
|
```
|
||||||
|
account_noPassword={_='account.noPassword', new_salt='bytes', email_unconfirmed_pattern='string'}
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
|
46
old_docs/API_docs_v70/constructors/account_password.md
Normal file
46
old_docs/API_docs_v70/constructors/account_password.md
Normal file
@ -0,0 +1,46 @@
|
|||||||
|
---
|
||||||
|
title: account.password
|
||||||
|
description: account_password attributes, type and example
|
||||||
|
---
|
||||||
|
## Constructor: account.password
|
||||||
|
[Back to constructors index](index.md)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### Attributes:
|
||||||
|
|
||||||
|
| Name | Type | Required |
|
||||||
|
|----------|---------------|----------|
|
||||||
|
|current\_salt|[bytes](../types/bytes.md) | Yes|
|
||||||
|
|new\_salt|[bytes](../types/bytes.md) | Yes|
|
||||||
|
|hint|[string](../types/string.md) | Yes|
|
||||||
|
|has\_recovery|[Bool](../types/Bool.md) | Yes|
|
||||||
|
|email\_unconfirmed\_pattern|[string](../types/string.md) | Yes|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### Type: [account\_Password](../types/account_Password.md)
|
||||||
|
|
||||||
|
|
||||||
|
### Example:
|
||||||
|
|
||||||
|
```
|
||||||
|
$account_password = ['_' => 'account.password', 'current_salt' => 'bytes', 'new_salt' => 'bytes', 'hint' => 'string', 'has_recovery' => Bool, 'email_unconfirmed_pattern' => 'string'];
|
||||||
|
```
|
||||||
|
|
||||||
|
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||||
|
|
||||||
|
```
|
||||||
|
{"_": "account.password", "current_salt": "bytes", "new_salt": "bytes", "hint": "string", "has_recovery": Bool, "email_unconfirmed_pattern": "string"}
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
Or, if you're into Lua:
|
||||||
|
|
||||||
|
|
||||||
|
```
|
||||||
|
account_password={_='account.password', current_salt='bytes', new_salt='bytes', hint='string', has_recovery=Bool, email_unconfirmed_pattern='string'}
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
|
@ -0,0 +1,45 @@
|
|||||||
|
---
|
||||||
|
title: account.passwordInputSettings
|
||||||
|
description: account_passwordInputSettings attributes, type and example
|
||||||
|
---
|
||||||
|
## Constructor: account.passwordInputSettings
|
||||||
|
[Back to constructors index](index.md)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### Attributes:
|
||||||
|
|
||||||
|
| Name | Type | Required |
|
||||||
|
|----------|---------------|----------|
|
||||||
|
|new\_salt|[bytes](../types/bytes.md) | Optional|
|
||||||
|
|new\_password\_hash|[bytes](../types/bytes.md) | Optional|
|
||||||
|
|hint|[string](../types/string.md) | Optional|
|
||||||
|
|email|[string](../types/string.md) | Optional|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### Type: [account\_PasswordInputSettings](../types/account_PasswordInputSettings.md)
|
||||||
|
|
||||||
|
|
||||||
|
### Example:
|
||||||
|
|
||||||
|
```
|
||||||
|
$account_passwordInputSettings = ['_' => 'account.passwordInputSettings', 'new_salt' => 'bytes', 'new_password_hash' => 'bytes', 'hint' => 'string', 'email' => 'string'];
|
||||||
|
```
|
||||||
|
|
||||||
|
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||||
|
|
||||||
|
```
|
||||||
|
{"_": "account.passwordInputSettings", "new_salt": "bytes", "new_password_hash": "bytes", "hint": "string", "email": "string"}
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
Or, if you're into Lua:
|
||||||
|
|
||||||
|
|
||||||
|
```
|
||||||
|
account_passwordInputSettings={_='account.passwordInputSettings', new_salt='bytes', new_password_hash='bytes', hint='string', email='string'}
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
|
@ -0,0 +1,42 @@
|
|||||||
|
---
|
||||||
|
title: account.passwordSettings
|
||||||
|
description: account_passwordSettings attributes, type and example
|
||||||
|
---
|
||||||
|
## Constructor: account.passwordSettings
|
||||||
|
[Back to constructors index](index.md)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### Attributes:
|
||||||
|
|
||||||
|
| Name | Type | Required |
|
||||||
|
|----------|---------------|----------|
|
||||||
|
|email|[string](../types/string.md) | Yes|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### Type: [account\_PasswordSettings](../types/account_PasswordSettings.md)
|
||||||
|
|
||||||
|
|
||||||
|
### Example:
|
||||||
|
|
||||||
|
```
|
||||||
|
$account_passwordSettings = ['_' => 'account.passwordSettings', 'email' => 'string'];
|
||||||
|
```
|
||||||
|
|
||||||
|
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||||
|
|
||||||
|
```
|
||||||
|
{"_": "account.passwordSettings", "email": "string"}
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
Or, if you're into Lua:
|
||||||
|
|
||||||
|
|
||||||
|
```
|
||||||
|
account_passwordSettings={_='account.passwordSettings', email='string'}
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
|
43
old_docs/API_docs_v70/constructors/account_privacyRules.md
Normal file
43
old_docs/API_docs_v70/constructors/account_privacyRules.md
Normal file
@ -0,0 +1,43 @@
|
|||||||
|
---
|
||||||
|
title: account.privacyRules
|
||||||
|
description: account_privacyRules attributes, type and example
|
||||||
|
---
|
||||||
|
## Constructor: account.privacyRules
|
||||||
|
[Back to constructors index](index.md)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### Attributes:
|
||||||
|
|
||||||
|
| Name | Type | Required |
|
||||||
|
|----------|---------------|----------|
|
||||||
|
|rules|Array of [PrivacyRule](../types/PrivacyRule.md) | Yes|
|
||||||
|
|users|Array of [User](../types/User.md) | Yes|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### Type: [account\_PrivacyRules](../types/account_PrivacyRules.md)
|
||||||
|
|
||||||
|
|
||||||
|
### Example:
|
||||||
|
|
||||||
|
```
|
||||||
|
$account_privacyRules = ['_' => 'account.privacyRules', 'rules' => [PrivacyRule], 'users' => [User]];
|
||||||
|
```
|
||||||
|
|
||||||
|
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||||
|
|
||||||
|
```
|
||||||
|
{"_": "account.privacyRules", "rules": [PrivacyRule], "users": [User]}
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
Or, if you're into Lua:
|
||||||
|
|
||||||
|
|
||||||
|
```
|
||||||
|
account_privacyRules={_='account.privacyRules', rules={PrivacyRule}, users={User}}
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
|
43
old_docs/API_docs_v70/constructors/account_tmpPassword.md
Normal file
43
old_docs/API_docs_v70/constructors/account_tmpPassword.md
Normal file
@ -0,0 +1,43 @@
|
|||||||
|
---
|
||||||
|
title: account.tmpPassword
|
||||||
|
description: account_tmpPassword attributes, type and example
|
||||||
|
---
|
||||||
|
## Constructor: account.tmpPassword
|
||||||
|
[Back to constructors index](index.md)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### Attributes:
|
||||||
|
|
||||||
|
| Name | Type | Required |
|
||||||
|
|----------|---------------|----------|
|
||||||
|
|tmp\_password|[bytes](../types/bytes.md) | Yes|
|
||||||
|
|valid\_until|[int](../types/int.md) | Yes|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### Type: [account\_TmpPassword](../types/account_TmpPassword.md)
|
||||||
|
|
||||||
|
|
||||||
|
### Example:
|
||||||
|
|
||||||
|
```
|
||||||
|
$account_tmpPassword = ['_' => 'account.tmpPassword', 'tmp_password' => 'bytes', 'valid_until' => int];
|
||||||
|
```
|
||||||
|
|
||||||
|
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||||
|
|
||||||
|
```
|
||||||
|
{"_": "account.tmpPassword", "tmp_password": "bytes", "valid_until": int}
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
Or, if you're into Lua:
|
||||||
|
|
||||||
|
|
||||||
|
```
|
||||||
|
account_tmpPassword={_='account.tmpPassword', tmp_password='bytes', valid_until=int}
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
|
43
old_docs/API_docs_v70/constructors/auth_authorization.md
Normal file
43
old_docs/API_docs_v70/constructors/auth_authorization.md
Normal file
@ -0,0 +1,43 @@
|
|||||||
|
---
|
||||||
|
title: auth.authorization
|
||||||
|
description: auth_authorization attributes, type and example
|
||||||
|
---
|
||||||
|
## Constructor: auth.authorization
|
||||||
|
[Back to constructors index](index.md)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### Attributes:
|
||||||
|
|
||||||
|
| Name | Type | Required |
|
||||||
|
|----------|---------------|----------|
|
||||||
|
|tmp\_sessions|[int](../types/int.md) | Optional|
|
||||||
|
|user|[User](../types/User.md) | Yes|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### Type: [auth\_Authorization](../types/auth_Authorization.md)
|
||||||
|
|
||||||
|
|
||||||
|
### Example:
|
||||||
|
|
||||||
|
```
|
||||||
|
$auth_authorization = ['_' => 'auth.authorization', 'tmp_sessions' => int, 'user' => User];
|
||||||
|
```
|
||||||
|
|
||||||
|
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||||
|
|
||||||
|
```
|
||||||
|
{"_": "auth.authorization", "tmp_sessions": int, "user": User}
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
Or, if you're into Lua:
|
||||||
|
|
||||||
|
|
||||||
|
```
|
||||||
|
auth_authorization={_='auth.authorization', tmp_sessions=int, user=User}
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
|
42
old_docs/API_docs_v70/constructors/auth_checkedPhone.md
Normal file
42
old_docs/API_docs_v70/constructors/auth_checkedPhone.md
Normal file
@ -0,0 +1,42 @@
|
|||||||
|
---
|
||||||
|
title: auth.checkedPhone
|
||||||
|
description: auth_checkedPhone attributes, type and example
|
||||||
|
---
|
||||||
|
## Constructor: auth.checkedPhone
|
||||||
|
[Back to constructors index](index.md)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### Attributes:
|
||||||
|
|
||||||
|
| Name | Type | Required |
|
||||||
|
|----------|---------------|----------|
|
||||||
|
|phone\_registered|[Bool](../types/Bool.md) | Yes|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### Type: [auth\_CheckedPhone](../types/auth_CheckedPhone.md)
|
||||||
|
|
||||||
|
|
||||||
|
### Example:
|
||||||
|
|
||||||
|
```
|
||||||
|
$auth_checkedPhone = ['_' => 'auth.checkedPhone', 'phone_registered' => Bool];
|
||||||
|
```
|
||||||
|
|
||||||
|
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||||
|
|
||||||
|
```
|
||||||
|
{"_": "auth.checkedPhone", "phone_registered": Bool}
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
Or, if you're into Lua:
|
||||||
|
|
||||||
|
|
||||||
|
```
|
||||||
|
auth_checkedPhone={_='auth.checkedPhone', phone_registered=Bool}
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
|
37
old_docs/API_docs_v70/constructors/auth_codeTypeCall.md
Normal file
37
old_docs/API_docs_v70/constructors/auth_codeTypeCall.md
Normal file
@ -0,0 +1,37 @@
|
|||||||
|
---
|
||||||
|
title: auth.codeTypeCall
|
||||||
|
description: auth_codeTypeCall attributes, type and example
|
||||||
|
---
|
||||||
|
## Constructor: auth.codeTypeCall
|
||||||
|
[Back to constructors index](index.md)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### Type: [auth\_CodeType](../types/auth_CodeType.md)
|
||||||
|
|
||||||
|
|
||||||
|
### Example:
|
||||||
|
|
||||||
|
```
|
||||||
|
$auth_codeTypeCall = ['_' => 'auth.codeTypeCall'];
|
||||||
|
```
|
||||||
|
|
||||||
|
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||||
|
|
||||||
|
```
|
||||||
|
{"_": "auth.codeTypeCall"}
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
Or, if you're into Lua:
|
||||||
|
|
||||||
|
|
||||||
|
```
|
||||||
|
auth_codeTypeCall={_='auth.codeTypeCall'}
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
|
37
old_docs/API_docs_v70/constructors/auth_codeTypeFlashCall.md
Normal file
37
old_docs/API_docs_v70/constructors/auth_codeTypeFlashCall.md
Normal file
@ -0,0 +1,37 @@
|
|||||||
|
---
|
||||||
|
title: auth.codeTypeFlashCall
|
||||||
|
description: auth_codeTypeFlashCall attributes, type and example
|
||||||
|
---
|
||||||
|
## Constructor: auth.codeTypeFlashCall
|
||||||
|
[Back to constructors index](index.md)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### Type: [auth\_CodeType](../types/auth_CodeType.md)
|
||||||
|
|
||||||
|
|
||||||
|
### Example:
|
||||||
|
|
||||||
|
```
|
||||||
|
$auth_codeTypeFlashCall = ['_' => 'auth.codeTypeFlashCall'];
|
||||||
|
```
|
||||||
|
|
||||||
|
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||||
|
|
||||||
|
```
|
||||||
|
{"_": "auth.codeTypeFlashCall"}
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
Or, if you're into Lua:
|
||||||
|
|
||||||
|
|
||||||
|
```
|
||||||
|
auth_codeTypeFlashCall={_='auth.codeTypeFlashCall'}
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
|
37
old_docs/API_docs_v70/constructors/auth_codeTypeSms.md
Normal file
37
old_docs/API_docs_v70/constructors/auth_codeTypeSms.md
Normal file
@ -0,0 +1,37 @@
|
|||||||
|
---
|
||||||
|
title: auth.codeTypeSms
|
||||||
|
description: auth_codeTypeSms attributes, type and example
|
||||||
|
---
|
||||||
|
## Constructor: auth.codeTypeSms
|
||||||
|
[Back to constructors index](index.md)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### Type: [auth\_CodeType](../types/auth_CodeType.md)
|
||||||
|
|
||||||
|
|
||||||
|
### Example:
|
||||||
|
|
||||||
|
```
|
||||||
|
$auth_codeTypeSms = ['_' => 'auth.codeTypeSms'];
|
||||||
|
```
|
||||||
|
|
||||||
|
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||||
|
|
||||||
|
```
|
||||||
|
{"_": "auth.codeTypeSms"}
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
Or, if you're into Lua:
|
||||||
|
|
||||||
|
|
||||||
|
```
|
||||||
|
auth_codeTypeSms={_='auth.codeTypeSms'}
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
|
@ -0,0 +1,43 @@
|
|||||||
|
---
|
||||||
|
title: auth.exportedAuthorization
|
||||||
|
description: auth_exportedAuthorization attributes, type and example
|
||||||
|
---
|
||||||
|
## Constructor: auth.exportedAuthorization
|
||||||
|
[Back to constructors index](index.md)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### Attributes:
|
||||||
|
|
||||||
|
| Name | Type | Required |
|
||||||
|
|----------|---------------|----------|
|
||||||
|
|id|[int](../types/int.md) | Yes|
|
||||||
|
|bytes|[bytes](../types/bytes.md) | Yes|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### Type: [auth\_ExportedAuthorization](../types/auth_ExportedAuthorization.md)
|
||||||
|
|
||||||
|
|
||||||
|
### Example:
|
||||||
|
|
||||||
|
```
|
||||||
|
$auth_exportedAuthorization = ['_' => 'auth.exportedAuthorization', 'id' => int, 'bytes' => 'bytes'];
|
||||||
|
```
|
||||||
|
|
||||||
|
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||||
|
|
||||||
|
```
|
||||||
|
{"_": "auth.exportedAuthorization", "id": int, "bytes": "bytes"}
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
Or, if you're into Lua:
|
||||||
|
|
||||||
|
|
||||||
|
```
|
||||||
|
auth_exportedAuthorization={_='auth.exportedAuthorization', id=int, bytes='bytes'}
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
|
42
old_docs/API_docs_v70/constructors/auth_passwordRecovery.md
Normal file
42
old_docs/API_docs_v70/constructors/auth_passwordRecovery.md
Normal file
@ -0,0 +1,42 @@
|
|||||||
|
---
|
||||||
|
title: auth.passwordRecovery
|
||||||
|
description: auth_passwordRecovery attributes, type and example
|
||||||
|
---
|
||||||
|
## Constructor: auth.passwordRecovery
|
||||||
|
[Back to constructors index](index.md)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### Attributes:
|
||||||
|
|
||||||
|
| Name | Type | Required |
|
||||||
|
|----------|---------------|----------|
|
||||||
|
|email\_pattern|[string](../types/string.md) | Yes|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### Type: [auth\_PasswordRecovery](../types/auth_PasswordRecovery.md)
|
||||||
|
|
||||||
|
|
||||||
|
### Example:
|
||||||
|
|
||||||
|
```
|
||||||
|
$auth_passwordRecovery = ['_' => 'auth.passwordRecovery', 'email_pattern' => 'string'];
|
||||||
|
```
|
||||||
|
|
||||||
|
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||||
|
|
||||||
|
```
|
||||||
|
{"_": "auth.passwordRecovery", "email_pattern": "string"}
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
Or, if you're into Lua:
|
||||||
|
|
||||||
|
|
||||||
|
```
|
||||||
|
auth_passwordRecovery={_='auth.passwordRecovery', email_pattern='string'}
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
|
46
old_docs/API_docs_v70/constructors/auth_sentCode.md
Normal file
46
old_docs/API_docs_v70/constructors/auth_sentCode.md
Normal file
@ -0,0 +1,46 @@
|
|||||||
|
---
|
||||||
|
title: auth.sentCode
|
||||||
|
description: auth_sentCode attributes, type and example
|
||||||
|
---
|
||||||
|
## Constructor: auth.sentCode
|
||||||
|
[Back to constructors index](index.md)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### Attributes:
|
||||||
|
|
||||||
|
| Name | Type | Required |
|
||||||
|
|----------|---------------|----------|
|
||||||
|
|phone\_registered|[Bool](../types/Bool.md) | Optional|
|
||||||
|
|type|[auth\_SentCodeType](../types/auth_SentCodeType.md) | Yes|
|
||||||
|
|phone\_code\_hash|[string](../types/string.md) | Yes|
|
||||||
|
|next\_type|[auth\_CodeType](../types/auth_CodeType.md) | Optional|
|
||||||
|
|timeout|[int](../types/int.md) | Optional|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### Type: [auth\_SentCode](../types/auth_SentCode.md)
|
||||||
|
|
||||||
|
|
||||||
|
### Example:
|
||||||
|
|
||||||
|
```
|
||||||
|
$auth_sentCode = ['_' => 'auth.sentCode', 'phone_registered' => Bool, 'type' => auth_SentCodeType, 'phone_code_hash' => 'string', 'next_type' => auth_CodeType, 'timeout' => int];
|
||||||
|
```
|
||||||
|
|
||||||
|
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||||
|
|
||||||
|
```
|
||||||
|
{"_": "auth.sentCode", "phone_registered": Bool, "type": auth_SentCodeType, "phone_code_hash": "string", "next_type": auth_CodeType, "timeout": int}
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
Or, if you're into Lua:
|
||||||
|
|
||||||
|
|
||||||
|
```
|
||||||
|
auth_sentCode={_='auth.sentCode', phone_registered=Bool, type=auth_SentCodeType, phone_code_hash='string', next_type=auth_CodeType, timeout=int}
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
|
42
old_docs/API_docs_v70/constructors/auth_sentCodeTypeApp.md
Normal file
42
old_docs/API_docs_v70/constructors/auth_sentCodeTypeApp.md
Normal file
@ -0,0 +1,42 @@
|
|||||||
|
---
|
||||||
|
title: auth.sentCodeTypeApp
|
||||||
|
description: auth_sentCodeTypeApp attributes, type and example
|
||||||
|
---
|
||||||
|
## Constructor: auth.sentCodeTypeApp
|
||||||
|
[Back to constructors index](index.md)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### Attributes:
|
||||||
|
|
||||||
|
| Name | Type | Required |
|
||||||
|
|----------|---------------|----------|
|
||||||
|
|length|[int](../types/int.md) | Yes|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### Type: [auth\_SentCodeType](../types/auth_SentCodeType.md)
|
||||||
|
|
||||||
|
|
||||||
|
### Example:
|
||||||
|
|
||||||
|
```
|
||||||
|
$auth_sentCodeTypeApp = ['_' => 'auth.sentCodeTypeApp', 'length' => int];
|
||||||
|
```
|
||||||
|
|
||||||
|
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||||
|
|
||||||
|
```
|
||||||
|
{"_": "auth.sentCodeTypeApp", "length": int}
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
Or, if you're into Lua:
|
||||||
|
|
||||||
|
|
||||||
|
```
|
||||||
|
auth_sentCodeTypeApp={_='auth.sentCodeTypeApp', length=int}
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
|
42
old_docs/API_docs_v70/constructors/auth_sentCodeTypeCall.md
Normal file
42
old_docs/API_docs_v70/constructors/auth_sentCodeTypeCall.md
Normal file
@ -0,0 +1,42 @@
|
|||||||
|
---
|
||||||
|
title: auth.sentCodeTypeCall
|
||||||
|
description: auth_sentCodeTypeCall attributes, type and example
|
||||||
|
---
|
||||||
|
## Constructor: auth.sentCodeTypeCall
|
||||||
|
[Back to constructors index](index.md)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### Attributes:
|
||||||
|
|
||||||
|
| Name | Type | Required |
|
||||||
|
|----------|---------------|----------|
|
||||||
|
|length|[int](../types/int.md) | Yes|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### Type: [auth\_SentCodeType](../types/auth_SentCodeType.md)
|
||||||
|
|
||||||
|
|
||||||
|
### Example:
|
||||||
|
|
||||||
|
```
|
||||||
|
$auth_sentCodeTypeCall = ['_' => 'auth.sentCodeTypeCall', 'length' => int];
|
||||||
|
```
|
||||||
|
|
||||||
|
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||||
|
|
||||||
|
```
|
||||||
|
{"_": "auth.sentCodeTypeCall", "length": int}
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
Or, if you're into Lua:
|
||||||
|
|
||||||
|
|
||||||
|
```
|
||||||
|
auth_sentCodeTypeCall={_='auth.sentCodeTypeCall', length=int}
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
|
@ -0,0 +1,42 @@
|
|||||||
|
---
|
||||||
|
title: auth.sentCodeTypeFlashCall
|
||||||
|
description: auth_sentCodeTypeFlashCall attributes, type and example
|
||||||
|
---
|
||||||
|
## Constructor: auth.sentCodeTypeFlashCall
|
||||||
|
[Back to constructors index](index.md)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### Attributes:
|
||||||
|
|
||||||
|
| Name | Type | Required |
|
||||||
|
|----------|---------------|----------|
|
||||||
|
|pattern|[string](../types/string.md) | Yes|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### Type: [auth\_SentCodeType](../types/auth_SentCodeType.md)
|
||||||
|
|
||||||
|
|
||||||
|
### Example:
|
||||||
|
|
||||||
|
```
|
||||||
|
$auth_sentCodeTypeFlashCall = ['_' => 'auth.sentCodeTypeFlashCall', 'pattern' => 'string'];
|
||||||
|
```
|
||||||
|
|
||||||
|
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||||
|
|
||||||
|
```
|
||||||
|
{"_": "auth.sentCodeTypeFlashCall", "pattern": "string"}
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
Or, if you're into Lua:
|
||||||
|
|
||||||
|
|
||||||
|
```
|
||||||
|
auth_sentCodeTypeFlashCall={_='auth.sentCodeTypeFlashCall', pattern='string'}
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
|
42
old_docs/API_docs_v70/constructors/auth_sentCodeTypeSms.md
Normal file
42
old_docs/API_docs_v70/constructors/auth_sentCodeTypeSms.md
Normal file
@ -0,0 +1,42 @@
|
|||||||
|
---
|
||||||
|
title: auth.sentCodeTypeSms
|
||||||
|
description: auth_sentCodeTypeSms attributes, type and example
|
||||||
|
---
|
||||||
|
## Constructor: auth.sentCodeTypeSms
|
||||||
|
[Back to constructors index](index.md)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### Attributes:
|
||||||
|
|
||||||
|
| Name | Type | Required |
|
||||||
|
|----------|---------------|----------|
|
||||||
|
|length|[int](../types/int.md) | Yes|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### Type: [auth\_SentCodeType](../types/auth_SentCodeType.md)
|
||||||
|
|
||||||
|
|
||||||
|
### Example:
|
||||||
|
|
||||||
|
```
|
||||||
|
$auth_sentCodeTypeSms = ['_' => 'auth.sentCodeTypeSms', 'length' => int];
|
||||||
|
```
|
||||||
|
|
||||||
|
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||||
|
|
||||||
|
```
|
||||||
|
{"_": "auth.sentCodeTypeSms", "length": int}
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
Or, if you're into Lua:
|
||||||
|
|
||||||
|
|
||||||
|
```
|
||||||
|
auth_sentCodeTypeSms={_='auth.sentCodeTypeSms', length=int}
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
|
53
old_docs/API_docs_v70/constructors/authorization.md
Normal file
53
old_docs/API_docs_v70/constructors/authorization.md
Normal file
@ -0,0 +1,53 @@
|
|||||||
|
---
|
||||||
|
title: authorization
|
||||||
|
description: authorization attributes, type and example
|
||||||
|
---
|
||||||
|
## Constructor: authorization
|
||||||
|
[Back to constructors index](index.md)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### Attributes:
|
||||||
|
|
||||||
|
| Name | Type | Required |
|
||||||
|
|----------|---------------|----------|
|
||||||
|
|hash|[long](../types/long.md) | Yes|
|
||||||
|
|device\_model|[string](../types/string.md) | Yes|
|
||||||
|
|platform|[string](../types/string.md) | Yes|
|
||||||
|
|system\_version|[string](../types/string.md) | Yes|
|
||||||
|
|api\_id|[int](../types/int.md) | Yes|
|
||||||
|
|app\_name|[string](../types/string.md) | Yes|
|
||||||
|
|app\_version|[string](../types/string.md) | Yes|
|
||||||
|
|date\_created|[int](../types/int.md) | Yes|
|
||||||
|
|date\_active|[int](../types/int.md) | Yes|
|
||||||
|
|ip|[string](../types/string.md) | Yes|
|
||||||
|
|country|[string](../types/string.md) | Yes|
|
||||||
|
|region|[string](../types/string.md) | Yes|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### Type: [Authorization](../types/Authorization.md)
|
||||||
|
|
||||||
|
|
||||||
|
### 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'];
|
||||||
|
```
|
||||||
|
|
||||||
|
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||||
|
|
||||||
|
```
|
||||||
|
{"_": "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"}
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
Or, if you're into Lua:
|
||||||
|
|
||||||
|
|
||||||
|
```
|
||||||
|
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'}
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
|
44
old_docs/API_docs_v70/constructors/bad_msg_notification.md
Normal file
44
old_docs/API_docs_v70/constructors/bad_msg_notification.md
Normal file
@ -0,0 +1,44 @@
|
|||||||
|
---
|
||||||
|
title: bad_msg_notification
|
||||||
|
description: bad_msg_notification attributes, type and example
|
||||||
|
---
|
||||||
|
## Constructor: bad\_msg\_notification
|
||||||
|
[Back to constructors index](index.md)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### Attributes:
|
||||||
|
|
||||||
|
| Name | Type | Required |
|
||||||
|
|----------|---------------|----------|
|
||||||
|
|bad\_msg\_id|[long](../types/long.md) | Yes|
|
||||||
|
|bad\_msg\_seqno|[int](../types/int.md) | Yes|
|
||||||
|
|error\_code|[int](../types/int.md) | Yes|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### Type: [BadMsgNotification](../types/BadMsgNotification.md)
|
||||||
|
|
||||||
|
|
||||||
|
### Example:
|
||||||
|
|
||||||
|
```
|
||||||
|
$bad_msg_notification = ['_' => 'bad_msg_notification', 'bad_msg_id' => long, 'bad_msg_seqno' => int, 'error_code' => int];
|
||||||
|
```
|
||||||
|
|
||||||
|
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||||
|
|
||||||
|
```
|
||||||
|
{"_": "bad_msg_notification", "bad_msg_id": long, "bad_msg_seqno": int, "error_code": int}
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
Or, if you're into Lua:
|
||||||
|
|
||||||
|
|
||||||
|
```
|
||||||
|
bad_msg_notification={_='bad_msg_notification', bad_msg_id=long, bad_msg_seqno=int, error_code=int}
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
|
45
old_docs/API_docs_v70/constructors/bad_server_salt.md
Normal file
45
old_docs/API_docs_v70/constructors/bad_server_salt.md
Normal file
@ -0,0 +1,45 @@
|
|||||||
|
---
|
||||||
|
title: bad_server_salt
|
||||||
|
description: bad_server_salt attributes, type and example
|
||||||
|
---
|
||||||
|
## Constructor: bad\_server\_salt
|
||||||
|
[Back to constructors index](index.md)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### Attributes:
|
||||||
|
|
||||||
|
| Name | Type | Required |
|
||||||
|
|----------|---------------|----------|
|
||||||
|
|bad\_msg\_id|[long](../types/long.md) | Yes|
|
||||||
|
|bad\_msg\_seqno|[int](../types/int.md) | Yes|
|
||||||
|
|error\_code|[int](../types/int.md) | Yes|
|
||||||
|
|new\_server\_salt|[long](../types/long.md) | Yes|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### Type: [BadMsgNotification](../types/BadMsgNotification.md)
|
||||||
|
|
||||||
|
|
||||||
|
### Example:
|
||||||
|
|
||||||
|
```
|
||||||
|
$bad_server_salt = ['_' => 'bad_server_salt', 'bad_msg_id' => long, 'bad_msg_seqno' => int, 'error_code' => int, 'new_server_salt' => long];
|
||||||
|
```
|
||||||
|
|
||||||
|
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||||
|
|
||||||
|
```
|
||||||
|
{"_": "bad_server_salt", "bad_msg_id": long, "bad_msg_seqno": int, "error_code": int, "new_server_salt": long}
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
Or, if you're into Lua:
|
||||||
|
|
||||||
|
|
||||||
|
```
|
||||||
|
bad_server_salt={_='bad_server_salt', bad_msg_id=long, bad_msg_seqno=int, error_code=int, new_server_salt=long}
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
|
8
old_docs/API_docs_v70/constructors/boolFalse.md
Normal file
8
old_docs/API_docs_v70/constructors/boolFalse.md
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
---
|
||||||
|
title: boolFalse
|
||||||
|
description: Represents a boolean with value equal to false
|
||||||
|
---
|
||||||
|
# boolFalse
|
||||||
|
[Back to constructor index](index.md)
|
||||||
|
|
||||||
|
Represents a boolean with value equal to `false`.
|
8
old_docs/API_docs_v70/constructors/boolTrue.md
Normal file
8
old_docs/API_docs_v70/constructors/boolTrue.md
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
---
|
||||||
|
title: boolTrue
|
||||||
|
description: Represents a boolean with value equal to true
|
||||||
|
---
|
||||||
|
# boolTrue
|
||||||
|
[Back to constructor index](index.md)
|
||||||
|
|
||||||
|
Represents a boolean with value equal to `true`.
|
43
old_docs/API_docs_v70/constructors/botCommand.md
Normal file
43
old_docs/API_docs_v70/constructors/botCommand.md
Normal file
@ -0,0 +1,43 @@
|
|||||||
|
---
|
||||||
|
title: botCommand
|
||||||
|
description: botCommand attributes, type and example
|
||||||
|
---
|
||||||
|
## Constructor: botCommand
|
||||||
|
[Back to constructors index](index.md)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### Attributes:
|
||||||
|
|
||||||
|
| Name | Type | Required |
|
||||||
|
|----------|---------------|----------|
|
||||||
|
|command|[string](../types/string.md) | Yes|
|
||||||
|
|description|[string](../types/string.md) | Yes|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### Type: [BotCommand](../types/BotCommand.md)
|
||||||
|
|
||||||
|
|
||||||
|
### Example:
|
||||||
|
|
||||||
|
```
|
||||||
|
$botCommand = ['_' => 'botCommand', 'command' => 'string', 'description' => 'string'];
|
||||||
|
```
|
||||||
|
|
||||||
|
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||||
|
|
||||||
|
```
|
||||||
|
{"_": "botCommand", "command": "string", "description": "string"}
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
Or, if you're into Lua:
|
||||||
|
|
||||||
|
|
||||||
|
```
|
||||||
|
botCommand={_='botCommand', command='string', description='string'}
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
|
44
old_docs/API_docs_v70/constructors/botInfo.md
Normal file
44
old_docs/API_docs_v70/constructors/botInfo.md
Normal file
@ -0,0 +1,44 @@
|
|||||||
|
---
|
||||||
|
title: botInfo
|
||||||
|
description: botInfo attributes, type and example
|
||||||
|
---
|
||||||
|
## Constructor: botInfo
|
||||||
|
[Back to constructors index](index.md)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### Attributes:
|
||||||
|
|
||||||
|
| Name | Type | Required |
|
||||||
|
|----------|---------------|----------|
|
||||||
|
|user\_id|[int](../types/int.md) | Yes|
|
||||||
|
|description|[string](../types/string.md) | Yes|
|
||||||
|
|commands|Array of [BotCommand](../types/BotCommand.md) | Yes|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### Type: [BotInfo](../types/BotInfo.md)
|
||||||
|
|
||||||
|
|
||||||
|
### Example:
|
||||||
|
|
||||||
|
```
|
||||||
|
$botInfo = ['_' => 'botInfo', 'user_id' => int, 'description' => 'string', 'commands' => [BotCommand]];
|
||||||
|
```
|
||||||
|
|
||||||
|
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||||
|
|
||||||
|
```
|
||||||
|
{"_": "botInfo", "user_id": int, "description": "string", "commands": [BotCommand]}
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
Or, if you're into Lua:
|
||||||
|
|
||||||
|
|
||||||
|
```
|
||||||
|
botInfo={_='botInfo', user_id=int, description='string', commands={BotCommand}}
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
|
48
old_docs/API_docs_v70/constructors/botInlineMediaResult.md
Normal file
48
old_docs/API_docs_v70/constructors/botInlineMediaResult.md
Normal file
@ -0,0 +1,48 @@
|
|||||||
|
---
|
||||||
|
title: botInlineMediaResult
|
||||||
|
description: botInlineMediaResult attributes, type and example
|
||||||
|
---
|
||||||
|
## Constructor: botInlineMediaResult
|
||||||
|
[Back to constructors index](index.md)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### Attributes:
|
||||||
|
|
||||||
|
| Name | Type | Required |
|
||||||
|
|----------|---------------|----------|
|
||||||
|
|id|[string](../types/string.md) | Yes|
|
||||||
|
|type|[string](../types/string.md) | Yes|
|
||||||
|
|photo|[Photo](../types/Photo.md) | Optional|
|
||||||
|
|document|[Document](../types/Document.md) | Optional|
|
||||||
|
|title|[string](../types/string.md) | Optional|
|
||||||
|
|description|[string](../types/string.md) | Optional|
|
||||||
|
|send\_message|[BotInlineMessage](../types/BotInlineMessage.md) | Yes|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### Type: [BotInlineResult](../types/BotInlineResult.md)
|
||||||
|
|
||||||
|
|
||||||
|
### Example:
|
||||||
|
|
||||||
|
```
|
||||||
|
$botInlineMediaResult = ['_' => 'botInlineMediaResult', 'id' => 'string', 'type' => 'string', 'photo' => Photo, 'document' => Document, 'title' => 'string', 'description' => 'string', 'send_message' => BotInlineMessage];
|
||||||
|
```
|
||||||
|
|
||||||
|
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||||
|
|
||||||
|
```
|
||||||
|
{"_": "botInlineMediaResult", "id": "string", "type": "string", "photo": Photo, "document": Document, "title": "string", "description": "string", "send_message": BotInlineMessage}
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
Or, if you're into Lua:
|
||||||
|
|
||||||
|
|
||||||
|
```
|
||||||
|
botInlineMediaResult={_='botInlineMediaResult', id='string', type='string', photo=Photo, document=Document, title='string', description='string', send_message=BotInlineMessage}
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
|
@ -0,0 +1,49 @@
|
|||||||
|
---
|
||||||
|
title: botInlineMessageMediaAuto
|
||||||
|
description: botInlineMessageMediaAuto attributes, type and example
|
||||||
|
---
|
||||||
|
## Constructor: botInlineMessageMediaAuto
|
||||||
|
[Back to constructors index](index.md)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### Attributes:
|
||||||
|
|
||||||
|
| Name | Type | Required |
|
||||||
|
|----------|---------------|----------|
|
||||||
|
|caption|[string](../types/string.md) | Yes|
|
||||||
|
|reply\_markup|[ReplyMarkup](../types/ReplyMarkup.md) | Optional|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### Type: [BotInlineMessage](../types/BotInlineMessage.md)
|
||||||
|
|
||||||
|
|
||||||
|
### Example:
|
||||||
|
|
||||||
|
```
|
||||||
|
$botInlineMessageMediaAuto = ['_' => 'botInlineMessageMediaAuto', 'caption' => 'string', 'reply_markup' => ReplyMarkup];
|
||||||
|
```
|
||||||
|
|
||||||
|
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||||
|
|
||||||
|
```
|
||||||
|
{"_": "botInlineMessageMediaAuto", "caption": "string", "reply_markup": ReplyMarkup}
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
Or, if you're into Lua:
|
||||||
|
|
||||||
|
|
||||||
|
```
|
||||||
|
botInlineMessageMediaAuto={_='botInlineMessageMediaAuto', caption='string', reply_markup=ReplyMarkup}
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
## Usage of reply_markup
|
||||||
|
|
||||||
|
You can provide bot API reply_markup objects here.
|
||||||
|
|
||||||
|
|
@ -0,0 +1,51 @@
|
|||||||
|
---
|
||||||
|
title: botInlineMessageMediaContact
|
||||||
|
description: botInlineMessageMediaContact attributes, type and example
|
||||||
|
---
|
||||||
|
## Constructor: botInlineMessageMediaContact
|
||||||
|
[Back to constructors index](index.md)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### Attributes:
|
||||||
|
|
||||||
|
| Name | Type | Required |
|
||||||
|
|----------|---------------|----------|
|
||||||
|
|phone\_number|[string](../types/string.md) | Yes|
|
||||||
|
|first\_name|[string](../types/string.md) | Yes|
|
||||||
|
|last\_name|[string](../types/string.md) | Yes|
|
||||||
|
|reply\_markup|[ReplyMarkup](../types/ReplyMarkup.md) | Optional|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### Type: [BotInlineMessage](../types/BotInlineMessage.md)
|
||||||
|
|
||||||
|
|
||||||
|
### Example:
|
||||||
|
|
||||||
|
```
|
||||||
|
$botInlineMessageMediaContact = ['_' => 'botInlineMessageMediaContact', 'phone_number' => 'string', 'first_name' => 'string', 'last_name' => 'string', 'reply_markup' => ReplyMarkup];
|
||||||
|
```
|
||||||
|
|
||||||
|
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||||
|
|
||||||
|
```
|
||||||
|
{"_": "botInlineMessageMediaContact", "phone_number": "string", "first_name": "string", "last_name": "string", "reply_markup": ReplyMarkup}
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
Or, if you're into Lua:
|
||||||
|
|
||||||
|
|
||||||
|
```
|
||||||
|
botInlineMessageMediaContact={_='botInlineMessageMediaContact', phone_number='string', first_name='string', last_name='string', reply_markup=ReplyMarkup}
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
## Usage of reply_markup
|
||||||
|
|
||||||
|
You can provide bot API reply_markup objects here.
|
||||||
|
|
||||||
|
|
@ -0,0 +1,49 @@
|
|||||||
|
---
|
||||||
|
title: botInlineMessageMediaGeo
|
||||||
|
description: botInlineMessageMediaGeo attributes, type and example
|
||||||
|
---
|
||||||
|
## Constructor: botInlineMessageMediaGeo
|
||||||
|
[Back to constructors index](index.md)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### Attributes:
|
||||||
|
|
||||||
|
| Name | Type | Required |
|
||||||
|
|----------|---------------|----------|
|
||||||
|
|geo|[GeoPoint](../types/GeoPoint.md) | Yes|
|
||||||
|
|reply\_markup|[ReplyMarkup](../types/ReplyMarkup.md) | Optional|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### Type: [BotInlineMessage](../types/BotInlineMessage.md)
|
||||||
|
|
||||||
|
|
||||||
|
### Example:
|
||||||
|
|
||||||
|
```
|
||||||
|
$botInlineMessageMediaGeo = ['_' => 'botInlineMessageMediaGeo', 'geo' => GeoPoint, 'reply_markup' => ReplyMarkup];
|
||||||
|
```
|
||||||
|
|
||||||
|
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||||
|
|
||||||
|
```
|
||||||
|
{"_": "botInlineMessageMediaGeo", "geo": GeoPoint, "reply_markup": ReplyMarkup}
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
Or, if you're into Lua:
|
||||||
|
|
||||||
|
|
||||||
|
```
|
||||||
|
botInlineMessageMediaGeo={_='botInlineMessageMediaGeo', geo=GeoPoint, reply_markup=ReplyMarkup}
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
## Usage of reply_markup
|
||||||
|
|
||||||
|
You can provide bot API reply_markup objects here.
|
||||||
|
|
||||||
|
|
@ -0,0 +1,53 @@
|
|||||||
|
---
|
||||||
|
title: botInlineMessageMediaVenue
|
||||||
|
description: botInlineMessageMediaVenue attributes, type and example
|
||||||
|
---
|
||||||
|
## Constructor: botInlineMessageMediaVenue
|
||||||
|
[Back to constructors index](index.md)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### Attributes:
|
||||||
|
|
||||||
|
| Name | Type | Required |
|
||||||
|
|----------|---------------|----------|
|
||||||
|
|geo|[GeoPoint](../types/GeoPoint.md) | Yes|
|
||||||
|
|title|[string](../types/string.md) | Yes|
|
||||||
|
|address|[string](../types/string.md) | Yes|
|
||||||
|
|provider|[string](../types/string.md) | Yes|
|
||||||
|
|venue\_id|[string](../types/string.md) | Yes|
|
||||||
|
|reply\_markup|[ReplyMarkup](../types/ReplyMarkup.md) | Optional|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### Type: [BotInlineMessage](../types/BotInlineMessage.md)
|
||||||
|
|
||||||
|
|
||||||
|
### Example:
|
||||||
|
|
||||||
|
```
|
||||||
|
$botInlineMessageMediaVenue = ['_' => 'botInlineMessageMediaVenue', 'geo' => GeoPoint, 'title' => 'string', 'address' => 'string', 'provider' => 'string', 'venue_id' => 'string', 'reply_markup' => ReplyMarkup];
|
||||||
|
```
|
||||||
|
|
||||||
|
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||||
|
|
||||||
|
```
|
||||||
|
{"_": "botInlineMessageMediaVenue", "geo": GeoPoint, "title": "string", "address": "string", "provider": "string", "venue_id": "string", "reply_markup": ReplyMarkup}
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
Or, if you're into Lua:
|
||||||
|
|
||||||
|
|
||||||
|
```
|
||||||
|
botInlineMessageMediaVenue={_='botInlineMessageMediaVenue', geo=GeoPoint, title='string', address='string', provider='string', venue_id='string', reply_markup=ReplyMarkup}
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
## Usage of reply_markup
|
||||||
|
|
||||||
|
You can provide bot API reply_markup objects here.
|
||||||
|
|
||||||
|
|
51
old_docs/API_docs_v70/constructors/botInlineMessageText.md
Normal file
51
old_docs/API_docs_v70/constructors/botInlineMessageText.md
Normal file
@ -0,0 +1,51 @@
|
|||||||
|
---
|
||||||
|
title: botInlineMessageText
|
||||||
|
description: botInlineMessageText attributes, type and example
|
||||||
|
---
|
||||||
|
## Constructor: botInlineMessageText
|
||||||
|
[Back to constructors index](index.md)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### Attributes:
|
||||||
|
|
||||||
|
| Name | Type | Required |
|
||||||
|
|----------|---------------|----------|
|
||||||
|
|no\_webpage|[Bool](../types/Bool.md) | Optional|
|
||||||
|
|message|[string](../types/string.md) | Yes|
|
||||||
|
|entities|Array of [MessageEntity](../types/MessageEntity.md) | Optional|
|
||||||
|
|reply\_markup|[ReplyMarkup](../types/ReplyMarkup.md) | Optional|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### Type: [BotInlineMessage](../types/BotInlineMessage.md)
|
||||||
|
|
||||||
|
|
||||||
|
### Example:
|
||||||
|
|
||||||
|
```
|
||||||
|
$botInlineMessageText = ['_' => 'botInlineMessageText', 'no_webpage' => Bool, 'message' => 'string', 'entities' => [MessageEntity], 'reply_markup' => ReplyMarkup];
|
||||||
|
```
|
||||||
|
|
||||||
|
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||||
|
|
||||||
|
```
|
||||||
|
{"_": "botInlineMessageText", "no_webpage": Bool, "message": "string", "entities": [MessageEntity], "reply_markup": ReplyMarkup}
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
Or, if you're into Lua:
|
||||||
|
|
||||||
|
|
||||||
|
```
|
||||||
|
botInlineMessageText={_='botInlineMessageText', no_webpage=Bool, message='string', entities={MessageEntity}, reply_markup=ReplyMarkup}
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
## Usage of reply_markup
|
||||||
|
|
||||||
|
You can provide bot API reply_markup objects here.
|
||||||
|
|
||||||
|
|
53
old_docs/API_docs_v70/constructors/botInlineResult.md
Normal file
53
old_docs/API_docs_v70/constructors/botInlineResult.md
Normal file
@ -0,0 +1,53 @@
|
|||||||
|
---
|
||||||
|
title: botInlineResult
|
||||||
|
description: botInlineResult attributes, type and example
|
||||||
|
---
|
||||||
|
## Constructor: botInlineResult
|
||||||
|
[Back to constructors index](index.md)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### Attributes:
|
||||||
|
|
||||||
|
| Name | Type | Required |
|
||||||
|
|----------|---------------|----------|
|
||||||
|
|id|[string](../types/string.md) | Yes|
|
||||||
|
|type|[string](../types/string.md) | Yes|
|
||||||
|
|title|[string](../types/string.md) | Optional|
|
||||||
|
|description|[string](../types/string.md) | Optional|
|
||||||
|
|url|[string](../types/string.md) | Optional|
|
||||||
|
|thumb\_url|[string](../types/string.md) | Optional|
|
||||||
|
|content\_url|[string](../types/string.md) | Optional|
|
||||||
|
|content\_type|[string](../types/string.md) | Optional|
|
||||||
|
|w|[int](../types/int.md) | Optional|
|
||||||
|
|h|[int](../types/int.md) | Optional|
|
||||||
|
|duration|[int](../types/int.md) | Optional|
|
||||||
|
|send\_message|[BotInlineMessage](../types/BotInlineMessage.md) | Yes|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### Type: [BotInlineResult](../types/BotInlineResult.md)
|
||||||
|
|
||||||
|
|
||||||
|
### 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];
|
||||||
|
```
|
||||||
|
|
||||||
|
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||||
|
|
||||||
|
```
|
||||||
|
{"_": "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}
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
Or, if you're into Lua:
|
||||||
|
|
||||||
|
|
||||||
|
```
|
||||||
|
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}
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
|
42
old_docs/API_docs_v70/constructors/cdnConfig.md
Normal file
42
old_docs/API_docs_v70/constructors/cdnConfig.md
Normal file
@ -0,0 +1,42 @@
|
|||||||
|
---
|
||||||
|
title: cdnConfig
|
||||||
|
description: cdnConfig attributes, type and example
|
||||||
|
---
|
||||||
|
## Constructor: cdnConfig
|
||||||
|
[Back to constructors index](index.md)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### Attributes:
|
||||||
|
|
||||||
|
| Name | Type | Required |
|
||||||
|
|----------|---------------|----------|
|
||||||
|
|public\_keys|Array of [CdnPublicKey](../types/CdnPublicKey.md) | Yes|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### Type: [CdnConfig](../types/CdnConfig.md)
|
||||||
|
|
||||||
|
|
||||||
|
### Example:
|
||||||
|
|
||||||
|
```
|
||||||
|
$cdnConfig = ['_' => 'cdnConfig', 'public_keys' => [CdnPublicKey]];
|
||||||
|
```
|
||||||
|
|
||||||
|
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||||
|
|
||||||
|
```
|
||||||
|
{"_": "cdnConfig", "public_keys": [CdnPublicKey]}
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
Or, if you're into Lua:
|
||||||
|
|
||||||
|
|
||||||
|
```
|
||||||
|
cdnConfig={_='cdnConfig', public_keys={CdnPublicKey}}
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
|
44
old_docs/API_docs_v70/constructors/cdnFileHash.md
Normal file
44
old_docs/API_docs_v70/constructors/cdnFileHash.md
Normal file
@ -0,0 +1,44 @@
|
|||||||
|
---
|
||||||
|
title: cdnFileHash
|
||||||
|
description: cdnFileHash attributes, type and example
|
||||||
|
---
|
||||||
|
## Constructor: cdnFileHash
|
||||||
|
[Back to constructors index](index.md)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### Attributes:
|
||||||
|
|
||||||
|
| Name | Type | Required |
|
||||||
|
|----------|---------------|----------|
|
||||||
|
|offset|[int](../types/int.md) | Yes|
|
||||||
|
|limit|[int](../types/int.md) | Yes|
|
||||||
|
|hash|[bytes](../types/bytes.md) | Yes|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### Type: [CdnFileHash](../types/CdnFileHash.md)
|
||||||
|
|
||||||
|
|
||||||
|
### Example:
|
||||||
|
|
||||||
|
```
|
||||||
|
$cdnFileHash = ['_' => 'cdnFileHash', 'offset' => int, 'limit' => int, 'hash' => 'bytes'];
|
||||||
|
```
|
||||||
|
|
||||||
|
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||||
|
|
||||||
|
```
|
||||||
|
{"_": "cdnFileHash", "offset": int, "limit": int, "hash": "bytes"}
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
Or, if you're into Lua:
|
||||||
|
|
||||||
|
|
||||||
|
```
|
||||||
|
cdnFileHash={_='cdnFileHash', offset=int, limit=int, hash='bytes'}
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
|
43
old_docs/API_docs_v70/constructors/cdnPublicKey.md
Normal file
43
old_docs/API_docs_v70/constructors/cdnPublicKey.md
Normal file
@ -0,0 +1,43 @@
|
|||||||
|
---
|
||||||
|
title: cdnPublicKey
|
||||||
|
description: cdnPublicKey attributes, type and example
|
||||||
|
---
|
||||||
|
## Constructor: cdnPublicKey
|
||||||
|
[Back to constructors index](index.md)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### Attributes:
|
||||||
|
|
||||||
|
| Name | Type | Required |
|
||||||
|
|----------|---------------|----------|
|
||||||
|
|dc\_id|[int](../types/int.md) | Yes|
|
||||||
|
|public\_key|[string](../types/string.md) | Yes|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### Type: [CdnPublicKey](../types/CdnPublicKey.md)
|
||||||
|
|
||||||
|
|
||||||
|
### Example:
|
||||||
|
|
||||||
|
```
|
||||||
|
$cdnPublicKey = ['_' => 'cdnPublicKey', 'dc_id' => int, 'public_key' => 'string'];
|
||||||
|
```
|
||||||
|
|
||||||
|
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||||
|
|
||||||
|
```
|
||||||
|
{"_": "cdnPublicKey", "dc_id": int, "public_key": "string"}
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
Or, if you're into Lua:
|
||||||
|
|
||||||
|
|
||||||
|
```
|
||||||
|
cdnPublicKey={_='cdnPublicKey', dc_id=int, public_key='string'}
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
|
61
old_docs/API_docs_v70/constructors/channel.md
Normal file
61
old_docs/API_docs_v70/constructors/channel.md
Normal file
@ -0,0 +1,61 @@
|
|||||||
|
---
|
||||||
|
title: channel
|
||||||
|
description: channel attributes, type and example
|
||||||
|
---
|
||||||
|
## Constructor: channel
|
||||||
|
[Back to constructors index](index.md)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### Attributes:
|
||||||
|
|
||||||
|
| Name | Type | Required |
|
||||||
|
|----------|---------------|----------|
|
||||||
|
|creator|[Bool](../types/Bool.md) | Optional|
|
||||||
|
|left|[Bool](../types/Bool.md) | Optional|
|
||||||
|
|editor|[Bool](../types/Bool.md) | Optional|
|
||||||
|
|broadcast|[Bool](../types/Bool.md) | Optional|
|
||||||
|
|verified|[Bool](../types/Bool.md) | Optional|
|
||||||
|
|megagroup|[Bool](../types/Bool.md) | Optional|
|
||||||
|
|restricted|[Bool](../types/Bool.md) | Optional|
|
||||||
|
|democracy|[Bool](../types/Bool.md) | Optional|
|
||||||
|
|signatures|[Bool](../types/Bool.md) | Optional|
|
||||||
|
|min|[Bool](../types/Bool.md) | Optional|
|
||||||
|
|id|[int](../types/int.md) | Yes|
|
||||||
|
|access\_hash|[long](../types/long.md) | Optional|
|
||||||
|
|title|[string](../types/string.md) | Yes|
|
||||||
|
|username|[string](../types/string.md) | Optional|
|
||||||
|
|photo|[ChatPhoto](../types/ChatPhoto.md) | Yes|
|
||||||
|
|date|[int](../types/int.md) | Yes|
|
||||||
|
|version|[int](../types/int.md) | Yes|
|
||||||
|
|restriction\_reason|[string](../types/string.md) | Optional|
|
||||||
|
|admin\_rights|[ChannelAdminRights](../types/ChannelAdminRights.md) | Optional|
|
||||||
|
|banned\_rights|[ChannelBannedRights](../types/ChannelBannedRights.md) | Optional|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### Type: [Chat](../types/Chat.md)
|
||||||
|
|
||||||
|
|
||||||
|
### Example:
|
||||||
|
|
||||||
|
```
|
||||||
|
$channel = ['_' => 'channel', 'creator' => Bool, 'left' => Bool, 'editor' => Bool, 'broadcast' => Bool, 'verified' => Bool, 'megagroup' => Bool, 'restricted' => Bool, 'democracy' => Bool, 'signatures' => Bool, 'min' => Bool, 'id' => int, 'access_hash' => long, 'title' => 'string', 'username' => 'string', 'photo' => ChatPhoto, 'date' => int, 'version' => int, 'restriction_reason' => 'string', 'admin_rights' => ChannelAdminRights, 'banned_rights' => ChannelBannedRights];
|
||||||
|
```
|
||||||
|
|
||||||
|
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||||
|
|
||||||
|
```
|
||||||
|
{"_": "channel", "creator": Bool, "left": Bool, "editor": Bool, "broadcast": Bool, "verified": Bool, "megagroup": Bool, "restricted": Bool, "democracy": Bool, "signatures": Bool, "min": Bool, "id": int, "access_hash": long, "title": "string", "username": "string", "photo": ChatPhoto, "date": int, "version": int, "restriction_reason": "string", "admin_rights": ChannelAdminRights, "banned_rights": ChannelBannedRights}
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
Or, if you're into Lua:
|
||||||
|
|
||||||
|
|
||||||
|
```
|
||||||
|
channel={_='channel', creator=Bool, left=Bool, editor=Bool, broadcast=Bool, verified=Bool, megagroup=Bool, restricted=Bool, democracy=Bool, signatures=Bool, min=Bool, id=int, access_hash=long, title='string', username='string', photo=ChatPhoto, date=int, version=int, restriction_reason='string', admin_rights=ChannelAdminRights, banned_rights=ChannelBannedRights}
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
|
45
old_docs/API_docs_v70/constructors/channelAdminLogEvent.md
Normal file
45
old_docs/API_docs_v70/constructors/channelAdminLogEvent.md
Normal file
@ -0,0 +1,45 @@
|
|||||||
|
---
|
||||||
|
title: channelAdminLogEvent
|
||||||
|
description: channelAdminLogEvent attributes, type and example
|
||||||
|
---
|
||||||
|
## Constructor: channelAdminLogEvent
|
||||||
|
[Back to constructors index](index.md)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### Attributes:
|
||||||
|
|
||||||
|
| Name | Type | Required |
|
||||||
|
|----------|---------------|----------|
|
||||||
|
|id|[long](../types/long.md) | Yes|
|
||||||
|
|date|[int](../types/int.md) | Yes|
|
||||||
|
|user\_id|[int](../types/int.md) | Yes|
|
||||||
|
|action|[ChannelAdminLogEventAction](../types/ChannelAdminLogEventAction.md) | Yes|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### Type: [ChannelAdminLogEvent](../types/ChannelAdminLogEvent.md)
|
||||||
|
|
||||||
|
|
||||||
|
### Example:
|
||||||
|
|
||||||
|
```
|
||||||
|
$channelAdminLogEvent = ['_' => 'channelAdminLogEvent', 'id' => long, 'date' => int, 'user_id' => int, 'action' => ChannelAdminLogEventAction];
|
||||||
|
```
|
||||||
|
|
||||||
|
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||||
|
|
||||||
|
```
|
||||||
|
{"_": "channelAdminLogEvent", "id": long, "date": int, "user_id": int, "action": ChannelAdminLogEventAction}
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
Or, if you're into Lua:
|
||||||
|
|
||||||
|
|
||||||
|
```
|
||||||
|
channelAdminLogEvent={_='channelAdminLogEvent', id=long, date=int, user_id=int, action=ChannelAdminLogEventAction}
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
|
@ -0,0 +1,43 @@
|
|||||||
|
---
|
||||||
|
title: channelAdminLogEventActionChangeAbout
|
||||||
|
description: channelAdminLogEventActionChangeAbout attributes, type and example
|
||||||
|
---
|
||||||
|
## Constructor: channelAdminLogEventActionChangeAbout
|
||||||
|
[Back to constructors index](index.md)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### Attributes:
|
||||||
|
|
||||||
|
| Name | Type | Required |
|
||||||
|
|----------|---------------|----------|
|
||||||
|
|prev\_value|[string](../types/string.md) | Yes|
|
||||||
|
|new\_value|[string](../types/string.md) | Yes|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### Type: [ChannelAdminLogEventAction](../types/ChannelAdminLogEventAction.md)
|
||||||
|
|
||||||
|
|
||||||
|
### Example:
|
||||||
|
|
||||||
|
```
|
||||||
|
$channelAdminLogEventActionChangeAbout = ['_' => 'channelAdminLogEventActionChangeAbout', 'prev_value' => 'string', 'new_value' => 'string'];
|
||||||
|
```
|
||||||
|
|
||||||
|
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||||
|
|
||||||
|
```
|
||||||
|
{"_": "channelAdminLogEventActionChangeAbout", "prev_value": "string", "new_value": "string"}
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
Or, if you're into Lua:
|
||||||
|
|
||||||
|
|
||||||
|
```
|
||||||
|
channelAdminLogEventActionChangeAbout={_='channelAdminLogEventActionChangeAbout', prev_value='string', new_value='string'}
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
|
@ -0,0 +1,43 @@
|
|||||||
|
---
|
||||||
|
title: channelAdminLogEventActionChangePhoto
|
||||||
|
description: channelAdminLogEventActionChangePhoto attributes, type and example
|
||||||
|
---
|
||||||
|
## Constructor: channelAdminLogEventActionChangePhoto
|
||||||
|
[Back to constructors index](index.md)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### Attributes:
|
||||||
|
|
||||||
|
| Name | Type | Required |
|
||||||
|
|----------|---------------|----------|
|
||||||
|
|prev\_photo|[ChatPhoto](../types/ChatPhoto.md) | Yes|
|
||||||
|
|new\_photo|[ChatPhoto](../types/ChatPhoto.md) | Yes|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### Type: [ChannelAdminLogEventAction](../types/ChannelAdminLogEventAction.md)
|
||||||
|
|
||||||
|
|
||||||
|
### Example:
|
||||||
|
|
||||||
|
```
|
||||||
|
$channelAdminLogEventActionChangePhoto = ['_' => 'channelAdminLogEventActionChangePhoto', 'prev_photo' => ChatPhoto, 'new_photo' => ChatPhoto];
|
||||||
|
```
|
||||||
|
|
||||||
|
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||||
|
|
||||||
|
```
|
||||||
|
{"_": "channelAdminLogEventActionChangePhoto", "prev_photo": ChatPhoto, "new_photo": ChatPhoto}
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
Or, if you're into Lua:
|
||||||
|
|
||||||
|
|
||||||
|
```
|
||||||
|
channelAdminLogEventActionChangePhoto={_='channelAdminLogEventActionChangePhoto', prev_photo=ChatPhoto, new_photo=ChatPhoto}
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
|
@ -0,0 +1,43 @@
|
|||||||
|
---
|
||||||
|
title: channelAdminLogEventActionChangeTitle
|
||||||
|
description: channelAdminLogEventActionChangeTitle attributes, type and example
|
||||||
|
---
|
||||||
|
## Constructor: channelAdminLogEventActionChangeTitle
|
||||||
|
[Back to constructors index](index.md)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### Attributes:
|
||||||
|
|
||||||
|
| Name | Type | Required |
|
||||||
|
|----------|---------------|----------|
|
||||||
|
|prev\_value|[string](../types/string.md) | Yes|
|
||||||
|
|new\_value|[string](../types/string.md) | Yes|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### Type: [ChannelAdminLogEventAction](../types/ChannelAdminLogEventAction.md)
|
||||||
|
|
||||||
|
|
||||||
|
### Example:
|
||||||
|
|
||||||
|
```
|
||||||
|
$channelAdminLogEventActionChangeTitle = ['_' => 'channelAdminLogEventActionChangeTitle', 'prev_value' => 'string', 'new_value' => 'string'];
|
||||||
|
```
|
||||||
|
|
||||||
|
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||||
|
|
||||||
|
```
|
||||||
|
{"_": "channelAdminLogEventActionChangeTitle", "prev_value": "string", "new_value": "string"}
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
Or, if you're into Lua:
|
||||||
|
|
||||||
|
|
||||||
|
```
|
||||||
|
channelAdminLogEventActionChangeTitle={_='channelAdminLogEventActionChangeTitle', prev_value='string', new_value='string'}
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
|
@ -0,0 +1,43 @@
|
|||||||
|
---
|
||||||
|
title: channelAdminLogEventActionChangeUsername
|
||||||
|
description: channelAdminLogEventActionChangeUsername attributes, type and example
|
||||||
|
---
|
||||||
|
## Constructor: channelAdminLogEventActionChangeUsername
|
||||||
|
[Back to constructors index](index.md)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### Attributes:
|
||||||
|
|
||||||
|
| Name | Type | Required |
|
||||||
|
|----------|---------------|----------|
|
||||||
|
|prev\_value|[string](../types/string.md) | Yes|
|
||||||
|
|new\_value|[string](../types/string.md) | Yes|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### Type: [ChannelAdminLogEventAction](../types/ChannelAdminLogEventAction.md)
|
||||||
|
|
||||||
|
|
||||||
|
### Example:
|
||||||
|
|
||||||
|
```
|
||||||
|
$channelAdminLogEventActionChangeUsername = ['_' => 'channelAdminLogEventActionChangeUsername', 'prev_value' => 'string', 'new_value' => 'string'];
|
||||||
|
```
|
||||||
|
|
||||||
|
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||||
|
|
||||||
|
```
|
||||||
|
{"_": "channelAdminLogEventActionChangeUsername", "prev_value": "string", "new_value": "string"}
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
Or, if you're into Lua:
|
||||||
|
|
||||||
|
|
||||||
|
```
|
||||||
|
channelAdminLogEventActionChangeUsername={_='channelAdminLogEventActionChangeUsername', prev_value='string', new_value='string'}
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
|
@ -0,0 +1,42 @@
|
|||||||
|
---
|
||||||
|
title: channelAdminLogEventActionDeleteMessage
|
||||||
|
description: channelAdminLogEventActionDeleteMessage attributes, type and example
|
||||||
|
---
|
||||||
|
## Constructor: channelAdminLogEventActionDeleteMessage
|
||||||
|
[Back to constructors index](index.md)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### Attributes:
|
||||||
|
|
||||||
|
| Name | Type | Required |
|
||||||
|
|----------|---------------|----------|
|
||||||
|
|message|[Message](../types/Message.md) | Yes|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### Type: [ChannelAdminLogEventAction](../types/ChannelAdminLogEventAction.md)
|
||||||
|
|
||||||
|
|
||||||
|
### Example:
|
||||||
|
|
||||||
|
```
|
||||||
|
$channelAdminLogEventActionDeleteMessage = ['_' => 'channelAdminLogEventActionDeleteMessage', 'message' => Message];
|
||||||
|
```
|
||||||
|
|
||||||
|
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||||
|
|
||||||
|
```
|
||||||
|
{"_": "channelAdminLogEventActionDeleteMessage", "message": Message}
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
Or, if you're into Lua:
|
||||||
|
|
||||||
|
|
||||||
|
```
|
||||||
|
channelAdminLogEventActionDeleteMessage={_='channelAdminLogEventActionDeleteMessage', message=Message}
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
|
@ -0,0 +1,43 @@
|
|||||||
|
---
|
||||||
|
title: channelAdminLogEventActionEditMessage
|
||||||
|
description: channelAdminLogEventActionEditMessage attributes, type and example
|
||||||
|
---
|
||||||
|
## Constructor: channelAdminLogEventActionEditMessage
|
||||||
|
[Back to constructors index](index.md)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### Attributes:
|
||||||
|
|
||||||
|
| Name | Type | Required |
|
||||||
|
|----------|---------------|----------|
|
||||||
|
|prev\_message|[Message](../types/Message.md) | Yes|
|
||||||
|
|new\_message|[Message](../types/Message.md) | Yes|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### Type: [ChannelAdminLogEventAction](../types/ChannelAdminLogEventAction.md)
|
||||||
|
|
||||||
|
|
||||||
|
### Example:
|
||||||
|
|
||||||
|
```
|
||||||
|
$channelAdminLogEventActionEditMessage = ['_' => 'channelAdminLogEventActionEditMessage', 'prev_message' => Message, 'new_message' => Message];
|
||||||
|
```
|
||||||
|
|
||||||
|
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||||
|
|
||||||
|
```
|
||||||
|
{"_": "channelAdminLogEventActionEditMessage", "prev_message": Message, "new_message": Message}
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
Or, if you're into Lua:
|
||||||
|
|
||||||
|
|
||||||
|
```
|
||||||
|
channelAdminLogEventActionEditMessage={_='channelAdminLogEventActionEditMessage', prev_message=Message, new_message=Message}
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
|
@ -0,0 +1,42 @@
|
|||||||
|
---
|
||||||
|
title: channelAdminLogEventActionParticipantInvite
|
||||||
|
description: channelAdminLogEventActionParticipantInvite attributes, type and example
|
||||||
|
---
|
||||||
|
## Constructor: channelAdminLogEventActionParticipantInvite
|
||||||
|
[Back to constructors index](index.md)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### Attributes:
|
||||||
|
|
||||||
|
| Name | Type | Required |
|
||||||
|
|----------|---------------|----------|
|
||||||
|
|participant|[ChannelParticipant](../types/ChannelParticipant.md) | Yes|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### Type: [ChannelAdminLogEventAction](../types/ChannelAdminLogEventAction.md)
|
||||||
|
|
||||||
|
|
||||||
|
### Example:
|
||||||
|
|
||||||
|
```
|
||||||
|
$channelAdminLogEventActionParticipantInvite = ['_' => 'channelAdminLogEventActionParticipantInvite', 'participant' => ChannelParticipant];
|
||||||
|
```
|
||||||
|
|
||||||
|
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||||
|
|
||||||
|
```
|
||||||
|
{"_": "channelAdminLogEventActionParticipantInvite", "participant": ChannelParticipant}
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
Or, if you're into Lua:
|
||||||
|
|
||||||
|
|
||||||
|
```
|
||||||
|
channelAdminLogEventActionParticipantInvite={_='channelAdminLogEventActionParticipantInvite', participant=ChannelParticipant}
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
|
@ -0,0 +1,37 @@
|
|||||||
|
---
|
||||||
|
title: channelAdminLogEventActionParticipantJoin
|
||||||
|
description: channelAdminLogEventActionParticipantJoin attributes, type and example
|
||||||
|
---
|
||||||
|
## Constructor: channelAdminLogEventActionParticipantJoin
|
||||||
|
[Back to constructors index](index.md)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### Type: [ChannelAdminLogEventAction](../types/ChannelAdminLogEventAction.md)
|
||||||
|
|
||||||
|
|
||||||
|
### Example:
|
||||||
|
|
||||||
|
```
|
||||||
|
$channelAdminLogEventActionParticipantJoin = ['_' => 'channelAdminLogEventActionParticipantJoin'];
|
||||||
|
```
|
||||||
|
|
||||||
|
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||||
|
|
||||||
|
```
|
||||||
|
{"_": "channelAdminLogEventActionParticipantJoin"}
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
Or, if you're into Lua:
|
||||||
|
|
||||||
|
|
||||||
|
```
|
||||||
|
channelAdminLogEventActionParticipantJoin={_='channelAdminLogEventActionParticipantJoin'}
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
|
@ -0,0 +1,37 @@
|
|||||||
|
---
|
||||||
|
title: channelAdminLogEventActionParticipantLeave
|
||||||
|
description: channelAdminLogEventActionParticipantLeave attributes, type and example
|
||||||
|
---
|
||||||
|
## Constructor: channelAdminLogEventActionParticipantLeave
|
||||||
|
[Back to constructors index](index.md)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### Type: [ChannelAdminLogEventAction](../types/ChannelAdminLogEventAction.md)
|
||||||
|
|
||||||
|
|
||||||
|
### Example:
|
||||||
|
|
||||||
|
```
|
||||||
|
$channelAdminLogEventActionParticipantLeave = ['_' => 'channelAdminLogEventActionParticipantLeave'];
|
||||||
|
```
|
||||||
|
|
||||||
|
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||||
|
|
||||||
|
```
|
||||||
|
{"_": "channelAdminLogEventActionParticipantLeave"}
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
Or, if you're into Lua:
|
||||||
|
|
||||||
|
|
||||||
|
```
|
||||||
|
channelAdminLogEventActionParticipantLeave={_='channelAdminLogEventActionParticipantLeave'}
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
|
@ -0,0 +1,43 @@
|
|||||||
|
---
|
||||||
|
title: channelAdminLogEventActionParticipantToggleAdmin
|
||||||
|
description: channelAdminLogEventActionParticipantToggleAdmin attributes, type and example
|
||||||
|
---
|
||||||
|
## Constructor: channelAdminLogEventActionParticipantToggleAdmin
|
||||||
|
[Back to constructors index](index.md)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### Attributes:
|
||||||
|
|
||||||
|
| Name | Type | Required |
|
||||||
|
|----------|---------------|----------|
|
||||||
|
|prev\_participant|[ChannelParticipant](../types/ChannelParticipant.md) | Yes|
|
||||||
|
|new\_participant|[ChannelParticipant](../types/ChannelParticipant.md) | Yes|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### Type: [ChannelAdminLogEventAction](../types/ChannelAdminLogEventAction.md)
|
||||||
|
|
||||||
|
|
||||||
|
### Example:
|
||||||
|
|
||||||
|
```
|
||||||
|
$channelAdminLogEventActionParticipantToggleAdmin = ['_' => 'channelAdminLogEventActionParticipantToggleAdmin', 'prev_participant' => ChannelParticipant, 'new_participant' => ChannelParticipant];
|
||||||
|
```
|
||||||
|
|
||||||
|
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||||
|
|
||||||
|
```
|
||||||
|
{"_": "channelAdminLogEventActionParticipantToggleAdmin", "prev_participant": ChannelParticipant, "new_participant": ChannelParticipant}
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
Or, if you're into Lua:
|
||||||
|
|
||||||
|
|
||||||
|
```
|
||||||
|
channelAdminLogEventActionParticipantToggleAdmin={_='channelAdminLogEventActionParticipantToggleAdmin', prev_participant=ChannelParticipant, new_participant=ChannelParticipant}
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
|
@ -0,0 +1,43 @@
|
|||||||
|
---
|
||||||
|
title: channelAdminLogEventActionParticipantToggleBan
|
||||||
|
description: channelAdminLogEventActionParticipantToggleBan attributes, type and example
|
||||||
|
---
|
||||||
|
## Constructor: channelAdminLogEventActionParticipantToggleBan
|
||||||
|
[Back to constructors index](index.md)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### Attributes:
|
||||||
|
|
||||||
|
| Name | Type | Required |
|
||||||
|
|----------|---------------|----------|
|
||||||
|
|prev\_participant|[ChannelParticipant](../types/ChannelParticipant.md) | Yes|
|
||||||
|
|new\_participant|[ChannelParticipant](../types/ChannelParticipant.md) | Yes|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### Type: [ChannelAdminLogEventAction](../types/ChannelAdminLogEventAction.md)
|
||||||
|
|
||||||
|
|
||||||
|
### Example:
|
||||||
|
|
||||||
|
```
|
||||||
|
$channelAdminLogEventActionParticipantToggleBan = ['_' => 'channelAdminLogEventActionParticipantToggleBan', 'prev_participant' => ChannelParticipant, 'new_participant' => ChannelParticipant];
|
||||||
|
```
|
||||||
|
|
||||||
|
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||||
|
|
||||||
|
```
|
||||||
|
{"_": "channelAdminLogEventActionParticipantToggleBan", "prev_participant": ChannelParticipant, "new_participant": ChannelParticipant}
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
Or, if you're into Lua:
|
||||||
|
|
||||||
|
|
||||||
|
```
|
||||||
|
channelAdminLogEventActionParticipantToggleBan={_='channelAdminLogEventActionParticipantToggleBan', prev_participant=ChannelParticipant, new_participant=ChannelParticipant}
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
|
@ -0,0 +1,42 @@
|
|||||||
|
---
|
||||||
|
title: channelAdminLogEventActionToggleInvites
|
||||||
|
description: channelAdminLogEventActionToggleInvites attributes, type and example
|
||||||
|
---
|
||||||
|
## Constructor: channelAdminLogEventActionToggleInvites
|
||||||
|
[Back to constructors index](index.md)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### Attributes:
|
||||||
|
|
||||||
|
| Name | Type | Required |
|
||||||
|
|----------|---------------|----------|
|
||||||
|
|new\_value|[Bool](../types/Bool.md) | Yes|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### Type: [ChannelAdminLogEventAction](../types/ChannelAdminLogEventAction.md)
|
||||||
|
|
||||||
|
|
||||||
|
### Example:
|
||||||
|
|
||||||
|
```
|
||||||
|
$channelAdminLogEventActionToggleInvites = ['_' => 'channelAdminLogEventActionToggleInvites', 'new_value' => Bool];
|
||||||
|
```
|
||||||
|
|
||||||
|
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||||
|
|
||||||
|
```
|
||||||
|
{"_": "channelAdminLogEventActionToggleInvites", "new_value": Bool}
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
Or, if you're into Lua:
|
||||||
|
|
||||||
|
|
||||||
|
```
|
||||||
|
channelAdminLogEventActionToggleInvites={_='channelAdminLogEventActionToggleInvites', new_value=Bool}
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
|
@ -0,0 +1,42 @@
|
|||||||
|
---
|
||||||
|
title: channelAdminLogEventActionToggleSignatures
|
||||||
|
description: channelAdminLogEventActionToggleSignatures attributes, type and example
|
||||||
|
---
|
||||||
|
## Constructor: channelAdminLogEventActionToggleSignatures
|
||||||
|
[Back to constructors index](index.md)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### Attributes:
|
||||||
|
|
||||||
|
| Name | Type | Required |
|
||||||
|
|----------|---------------|----------|
|
||||||
|
|new\_value|[Bool](../types/Bool.md) | Yes|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### Type: [ChannelAdminLogEventAction](../types/ChannelAdminLogEventAction.md)
|
||||||
|
|
||||||
|
|
||||||
|
### Example:
|
||||||
|
|
||||||
|
```
|
||||||
|
$channelAdminLogEventActionToggleSignatures = ['_' => 'channelAdminLogEventActionToggleSignatures', 'new_value' => Bool];
|
||||||
|
```
|
||||||
|
|
||||||
|
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||||
|
|
||||||
|
```
|
||||||
|
{"_": "channelAdminLogEventActionToggleSignatures", "new_value": Bool}
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
Or, if you're into Lua:
|
||||||
|
|
||||||
|
|
||||||
|
```
|
||||||
|
channelAdminLogEventActionToggleSignatures={_='channelAdminLogEventActionToggleSignatures', new_value=Bool}
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
|
@ -0,0 +1,42 @@
|
|||||||
|
---
|
||||||
|
title: channelAdminLogEventActionUpdatePinned
|
||||||
|
description: channelAdminLogEventActionUpdatePinned attributes, type and example
|
||||||
|
---
|
||||||
|
## Constructor: channelAdminLogEventActionUpdatePinned
|
||||||
|
[Back to constructors index](index.md)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### Attributes:
|
||||||
|
|
||||||
|
| Name | Type | Required |
|
||||||
|
|----------|---------------|----------|
|
||||||
|
|message|[Message](../types/Message.md) | Yes|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### Type: [ChannelAdminLogEventAction](../types/ChannelAdminLogEventAction.md)
|
||||||
|
|
||||||
|
|
||||||
|
### Example:
|
||||||
|
|
||||||
|
```
|
||||||
|
$channelAdminLogEventActionUpdatePinned = ['_' => 'channelAdminLogEventActionUpdatePinned', 'message' => Message];
|
||||||
|
```
|
||||||
|
|
||||||
|
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||||
|
|
||||||
|
```
|
||||||
|
{"_": "channelAdminLogEventActionUpdatePinned", "message": Message}
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
Or, if you're into Lua:
|
||||||
|
|
||||||
|
|
||||||
|
```
|
||||||
|
channelAdminLogEventActionUpdatePinned={_='channelAdminLogEventActionUpdatePinned', message=Message}
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
|
@ -0,0 +1,55 @@
|
|||||||
|
---
|
||||||
|
title: channelAdminLogEventsFilter
|
||||||
|
description: channelAdminLogEventsFilter attributes, type and example
|
||||||
|
---
|
||||||
|
## Constructor: channelAdminLogEventsFilter
|
||||||
|
[Back to constructors index](index.md)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### Attributes:
|
||||||
|
|
||||||
|
| Name | Type | Required |
|
||||||
|
|----------|---------------|----------|
|
||||||
|
|join|[Bool](../types/Bool.md) | Optional|
|
||||||
|
|leave|[Bool](../types/Bool.md) | Optional|
|
||||||
|
|invite|[Bool](../types/Bool.md) | Optional|
|
||||||
|
|ban|[Bool](../types/Bool.md) | Optional|
|
||||||
|
|unban|[Bool](../types/Bool.md) | Optional|
|
||||||
|
|kick|[Bool](../types/Bool.md) | Optional|
|
||||||
|
|unkick|[Bool](../types/Bool.md) | Optional|
|
||||||
|
|promote|[Bool](../types/Bool.md) | Optional|
|
||||||
|
|demote|[Bool](../types/Bool.md) | Optional|
|
||||||
|
|info|[Bool](../types/Bool.md) | Optional|
|
||||||
|
|settings|[Bool](../types/Bool.md) | Optional|
|
||||||
|
|pinned|[Bool](../types/Bool.md) | Optional|
|
||||||
|
|edit|[Bool](../types/Bool.md) | Optional|
|
||||||
|
|delete|[Bool](../types/Bool.md) | Optional|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### Type: [ChannelAdminLogEventsFilter](../types/ChannelAdminLogEventsFilter.md)
|
||||||
|
|
||||||
|
|
||||||
|
### Example:
|
||||||
|
|
||||||
|
```
|
||||||
|
$channelAdminLogEventsFilter = ['_' => 'channelAdminLogEventsFilter', 'join' => Bool, 'leave' => Bool, 'invite' => Bool, 'ban' => Bool, 'unban' => Bool, 'kick' => Bool, 'unkick' => Bool, 'promote' => Bool, 'demote' => Bool, 'info' => Bool, 'settings' => Bool, 'pinned' => Bool, 'edit' => Bool, 'delete' => Bool];
|
||||||
|
```
|
||||||
|
|
||||||
|
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||||
|
|
||||||
|
```
|
||||||
|
{"_": "channelAdminLogEventsFilter", "join": Bool, "leave": Bool, "invite": Bool, "ban": Bool, "unban": Bool, "kick": Bool, "unkick": Bool, "promote": Bool, "demote": Bool, "info": Bool, "settings": Bool, "pinned": Bool, "edit": Bool, "delete": Bool}
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
Or, if you're into Lua:
|
||||||
|
|
||||||
|
|
||||||
|
```
|
||||||
|
channelAdminLogEventsFilter={_='channelAdminLogEventsFilter', join=Bool, leave=Bool, invite=Bool, ban=Bool, unban=Bool, kick=Bool, unkick=Bool, promote=Bool, demote=Bool, info=Bool, settings=Bool, pinned=Bool, edit=Bool, delete=Bool}
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
|
50
old_docs/API_docs_v70/constructors/channelAdminRights.md
Normal file
50
old_docs/API_docs_v70/constructors/channelAdminRights.md
Normal file
@ -0,0 +1,50 @@
|
|||||||
|
---
|
||||||
|
title: channelAdminRights
|
||||||
|
description: channelAdminRights attributes, type and example
|
||||||
|
---
|
||||||
|
## Constructor: channelAdminRights
|
||||||
|
[Back to constructors index](index.md)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### Attributes:
|
||||||
|
|
||||||
|
| Name | Type | Required |
|
||||||
|
|----------|---------------|----------|
|
||||||
|
|change\_info|[Bool](../types/Bool.md) | Optional|
|
||||||
|
|post\_messages|[Bool](../types/Bool.md) | Optional|
|
||||||
|
|edit\_messages|[Bool](../types/Bool.md) | Optional|
|
||||||
|
|delete\_messages|[Bool](../types/Bool.md) | Optional|
|
||||||
|
|ban\_users|[Bool](../types/Bool.md) | Optional|
|
||||||
|
|invite\_users|[Bool](../types/Bool.md) | Optional|
|
||||||
|
|invite\_link|[Bool](../types/Bool.md) | Optional|
|
||||||
|
|pin\_messages|[Bool](../types/Bool.md) | Optional|
|
||||||
|
|add\_admins|[Bool](../types/Bool.md) | Optional|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### Type: [ChannelAdminRights](../types/ChannelAdminRights.md)
|
||||||
|
|
||||||
|
|
||||||
|
### Example:
|
||||||
|
|
||||||
|
```
|
||||||
|
$channelAdminRights = ['_' => 'channelAdminRights', 'change_info' => Bool, 'post_messages' => Bool, 'edit_messages' => Bool, 'delete_messages' => Bool, 'ban_users' => Bool, 'invite_users' => Bool, 'invite_link' => Bool, 'pin_messages' => Bool, 'add_admins' => Bool];
|
||||||
|
```
|
||||||
|
|
||||||
|
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||||
|
|
||||||
|
```
|
||||||
|
{"_": "channelAdminRights", "change_info": Bool, "post_messages": Bool, "edit_messages": Bool, "delete_messages": Bool, "ban_users": Bool, "invite_users": Bool, "invite_link": Bool, "pin_messages": Bool, "add_admins": Bool}
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
Or, if you're into Lua:
|
||||||
|
|
||||||
|
|
||||||
|
```
|
||||||
|
channelAdminRights={_='channelAdminRights', change_info=Bool, post_messages=Bool, edit_messages=Bool, delete_messages=Bool, ban_users=Bool, invite_users=Bool, invite_link=Bool, pin_messages=Bool, add_admins=Bool}
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
|
50
old_docs/API_docs_v70/constructors/channelBannedRights.md
Normal file
50
old_docs/API_docs_v70/constructors/channelBannedRights.md
Normal file
@ -0,0 +1,50 @@
|
|||||||
|
---
|
||||||
|
title: channelBannedRights
|
||||||
|
description: channelBannedRights attributes, type and example
|
||||||
|
---
|
||||||
|
## Constructor: channelBannedRights
|
||||||
|
[Back to constructors index](index.md)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### Attributes:
|
||||||
|
|
||||||
|
| Name | Type | Required |
|
||||||
|
|----------|---------------|----------|
|
||||||
|
|view\_messages|[Bool](../types/Bool.md) | Optional|
|
||||||
|
|send\_messages|[Bool](../types/Bool.md) | Optional|
|
||||||
|
|send\_media|[Bool](../types/Bool.md) | Optional|
|
||||||
|
|send\_stickers|[Bool](../types/Bool.md) | Optional|
|
||||||
|
|send\_gifs|[Bool](../types/Bool.md) | Optional|
|
||||||
|
|send\_games|[Bool](../types/Bool.md) | Optional|
|
||||||
|
|send\_inline|[Bool](../types/Bool.md) | Optional|
|
||||||
|
|embed\_links|[Bool](../types/Bool.md) | Optional|
|
||||||
|
|until\_date|[int](../types/int.md) | Yes|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### Type: [ChannelBannedRights](../types/ChannelBannedRights.md)
|
||||||
|
|
||||||
|
|
||||||
|
### Example:
|
||||||
|
|
||||||
|
```
|
||||||
|
$channelBannedRights = ['_' => 'channelBannedRights', 'view_messages' => Bool, 'send_messages' => Bool, 'send_media' => Bool, 'send_stickers' => Bool, 'send_gifs' => Bool, 'send_games' => Bool, 'send_inline' => Bool, 'embed_links' => Bool, 'until_date' => int];
|
||||||
|
```
|
||||||
|
|
||||||
|
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||||
|
|
||||||
|
```
|
||||||
|
{"_": "channelBannedRights", "view_messages": Bool, "send_messages": Bool, "send_media": Bool, "send_stickers": Bool, "send_gifs": Bool, "send_games": Bool, "send_inline": Bool, "embed_links": Bool, "until_date": int}
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
Or, if you're into Lua:
|
||||||
|
|
||||||
|
|
||||||
|
```
|
||||||
|
channelBannedRights={_='channelBannedRights', view_messages=Bool, send_messages=Bool, send_media=Bool, send_stickers=Bool, send_gifs=Bool, send_games=Bool, send_inline=Bool, embed_links=Bool, until_date=int}
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
|
47
old_docs/API_docs_v70/constructors/channelForbidden.md
Normal file
47
old_docs/API_docs_v70/constructors/channelForbidden.md
Normal file
@ -0,0 +1,47 @@
|
|||||||
|
---
|
||||||
|
title: channelForbidden
|
||||||
|
description: channelForbidden attributes, type and example
|
||||||
|
---
|
||||||
|
## Constructor: channelForbidden
|
||||||
|
[Back to constructors index](index.md)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### Attributes:
|
||||||
|
|
||||||
|
| Name | Type | Required |
|
||||||
|
|----------|---------------|----------|
|
||||||
|
|broadcast|[Bool](../types/Bool.md) | Optional|
|
||||||
|
|megagroup|[Bool](../types/Bool.md) | Optional|
|
||||||
|
|id|[int](../types/int.md) | Yes|
|
||||||
|
|access\_hash|[long](../types/long.md) | Yes|
|
||||||
|
|title|[string](../types/string.md) | Yes|
|
||||||
|
|until\_date|[int](../types/int.md) | Optional|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### Type: [Chat](../types/Chat.md)
|
||||||
|
|
||||||
|
|
||||||
|
### Example:
|
||||||
|
|
||||||
|
```
|
||||||
|
$channelForbidden = ['_' => 'channelForbidden', 'broadcast' => Bool, 'megagroup' => Bool, 'id' => int, 'access_hash' => long, 'title' => 'string', 'until_date' => int];
|
||||||
|
```
|
||||||
|
|
||||||
|
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||||
|
|
||||||
|
```
|
||||||
|
{"_": "channelForbidden", "broadcast": Bool, "megagroup": Bool, "id": int, "access_hash": long, "title": "string", "until_date": int}
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
Or, if you're into Lua:
|
||||||
|
|
||||||
|
|
||||||
|
```
|
||||||
|
channelForbidden={_='channelForbidden', broadcast=Bool, megagroup=Bool, id=int, access_hash=long, title='string', until_date=int}
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
|
59
old_docs/API_docs_v70/constructors/channelFull.md
Normal file
59
old_docs/API_docs_v70/constructors/channelFull.md
Normal file
@ -0,0 +1,59 @@
|
|||||||
|
---
|
||||||
|
title: channelFull
|
||||||
|
description: channelFull attributes, type and example
|
||||||
|
---
|
||||||
|
## Constructor: channelFull
|
||||||
|
[Back to constructors index](index.md)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### Attributes:
|
||||||
|
|
||||||
|
| Name | Type | Required |
|
||||||
|
|----------|---------------|----------|
|
||||||
|
|can\_view\_participants|[Bool](../types/Bool.md) | Optional|
|
||||||
|
|can\_set\_username|[Bool](../types/Bool.md) | Optional|
|
||||||
|
|id|[int](../types/int.md) | Yes|
|
||||||
|
|about|[string](../types/string.md) | Yes|
|
||||||
|
|participants\_count|[int](../types/int.md) | Optional|
|
||||||
|
|admins\_count|[int](../types/int.md) | Optional|
|
||||||
|
|kicked\_count|[int](../types/int.md) | Optional|
|
||||||
|
|banned\_count|[int](../types/int.md) | Optional|
|
||||||
|
|read\_inbox\_max\_id|[int](../types/int.md) | Yes|
|
||||||
|
|read\_outbox\_max\_id|[int](../types/int.md) | Yes|
|
||||||
|
|unread\_count|[int](../types/int.md) | Yes|
|
||||||
|
|chat\_photo|[Photo](../types/Photo.md) | Yes|
|
||||||
|
|notify\_settings|[PeerNotifySettings](../types/PeerNotifySettings.md) | Yes|
|
||||||
|
|exported\_invite|[ExportedChatInvite](../types/ExportedChatInvite.md) | Yes|
|
||||||
|
|bot\_info|Array of [BotInfo](../types/BotInfo.md) | Yes|
|
||||||
|
|migrated\_from\_chat\_id|[int](../types/int.md) | Optional|
|
||||||
|
|migrated\_from\_max\_id|[int](../types/int.md) | Optional|
|
||||||
|
|pinned\_msg\_id|[int](../types/int.md) | Optional|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### Type: [ChatFull](../types/ChatFull.md)
|
||||||
|
|
||||||
|
|
||||||
|
### Example:
|
||||||
|
|
||||||
|
```
|
||||||
|
$channelFull = ['_' => 'channelFull', 'can_view_participants' => Bool, 'can_set_username' => Bool, 'id' => int, 'about' => 'string', 'participants_count' => int, 'admins_count' => int, 'kicked_count' => int, 'banned_count' => int, 'read_inbox_max_id' => int, 'read_outbox_max_id' => int, 'unread_count' => int, 'chat_photo' => Photo, 'notify_settings' => PeerNotifySettings, 'exported_invite' => ExportedChatInvite, 'bot_info' => [BotInfo], 'migrated_from_chat_id' => int, 'migrated_from_max_id' => int, 'pinned_msg_id' => int];
|
||||||
|
```
|
||||||
|
|
||||||
|
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||||
|
|
||||||
|
```
|
||||||
|
{"_": "channelFull", "can_view_participants": Bool, "can_set_username": Bool, "id": int, "about": "string", "participants_count": int, "admins_count": int, "kicked_count": int, "banned_count": int, "read_inbox_max_id": int, "read_outbox_max_id": int, "unread_count": int, "chat_photo": Photo, "notify_settings": PeerNotifySettings, "exported_invite": ExportedChatInvite, "bot_info": [BotInfo], "migrated_from_chat_id": int, "migrated_from_max_id": int, "pinned_msg_id": int}
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
Or, if you're into Lua:
|
||||||
|
|
||||||
|
|
||||||
|
```
|
||||||
|
channelFull={_='channelFull', can_view_participants=Bool, can_set_username=Bool, id=int, about='string', participants_count=int, admins_count=int, kicked_count=int, banned_count=int, read_inbox_max_id=int, read_outbox_max_id=int, unread_count=int, chat_photo=Photo, notify_settings=PeerNotifySettings, exported_invite=ExportedChatInvite, bot_info={BotInfo}, migrated_from_chat_id=int, migrated_from_max_id=int, pinned_msg_id=int}
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user