Update docs

This commit is contained in:
Daniil Gentili 2019-03-08 13:49:23 +01:00
parent 82b301b005
commit 9e83df1629
1328 changed files with 62161 additions and 137 deletions

View File

@ -0,0 +1,43 @@
---
title: account.wallPapers
description: account_wallPapers attributes, type and example
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: account.wallPapers
[Back to constructors index](index.md)
### Attributes:
| Name | Type | Required |
|----------|---------------|----------|
|hash|[int](../types/int.md) | Yes|
|wallpapers|Array of [WallPaper](../types/WallPaper.md) | Yes|
### Type: [account\_WallPapers](../types/account_WallPapers.md)
### Example:
```php
$account_wallPapers = ['_' => 'account.wallPapers', 'hash' => int, 'wallpapers' => [WallPaper, WallPaper]];
```
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
```
{"_": "account.wallPapers", "hash": int, "wallpapers": [WallPaper]}
```
Or, if you're into Lua:
```lua
account_wallPapers={_='account.wallPapers', hash=int, wallpapers={WallPaper}}
```

View File

@ -0,0 +1,37 @@
---
title: account.wallPapersNotModified
description: account_wallPapersNotModified attributes, type and example
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: account.wallPapersNotModified
[Back to constructors index](index.md)
### Type: [account\_WallPapers](../types/account_WallPapers.md)
### Example:
```php
$account_wallPapersNotModified = ['_' => 'account.wallPapersNotModified'];
```
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
```
{"_": "account.wallPapersNotModified"}
```
Or, if you're into Lua:
```lua
account_wallPapersNotModified={_='account.wallPapersNotModified'}
```

View File

@ -16,12 +16,10 @@ Channel
|----------|---------------|----------|-------------|
|creator|[Bool](../types/Bool.md) | Optional|Creator?|
|left|[Bool](../types/Bool.md) | Optional|Left?|
|editor|[Bool](../types/Bool.md) | Optional|Editor?|
|broadcast|[Bool](../types/Bool.md) | Optional|Broadcast?|
|verified|[Bool](../types/Bool.md) | Optional|Verified?|
|megagroup|[Bool](../types/Bool.md) | Optional|Megagroup?|
|restricted|[Bool](../types/Bool.md) | Optional|Restricted?|
|democracy|[Bool](../types/Bool.md) | Optional|Democracy?|
|signatures|[Bool](../types/Bool.md) | Optional|Signatures?|
|min|[Bool](../types/Bool.md) | Optional|Min?|
|id|[int](../types/int.md) | Yes|ID|
@ -32,8 +30,9 @@ Channel
|date|[int](../types/int.md) | Yes|Date|
|version|[int](../types/int.md) | Yes|Version|
|restriction\_reason|[string](../types/string.md) | Optional|Restriction reason|
|admin\_rights|[ChannelAdminRights](../types/ChannelAdminRights.md) | Optional|Admin rights|
|banned\_rights|[ChannelBannedRights](../types/ChannelBannedRights.md) | Optional|Banned rights|
|admin\_rights|[ChatAdminRights](../types/ChatAdminRights.md) | Optional||
|banned\_rights|[ChatBannedRights](../types/ChatBannedRights.md) | Optional||
|default\_banned\_rights|[ChatBannedRights](../types/ChatBannedRights.md) | Optional||
|participants\_count|[int](../types/int.md) | Optional|Participants count|
@ -44,20 +43,20 @@ Channel
### Example:
```php
$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, 'participants_count' => int];
$channel = ['_' => 'channel', 'creator' => Bool, 'left' => Bool, 'broadcast' => Bool, 'verified' => Bool, 'megagroup' => Bool, 'restricted' => 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' => ChatAdminRights, 'banned_rights' => ChatBannedRights, 'default_banned_rights' => ChatBannedRights, 'participants_count' => int];
```
[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, "participants_count": int}
{"_": "channel", "creator": Bool, "left": Bool, "broadcast": Bool, "verified": Bool, "megagroup": Bool, "restricted": 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": ChatAdminRights, "banned_rights": ChatBannedRights, "default_banned_rights": ChatBannedRights, "participants_count": int}
```
Or, if you're into Lua:
```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, participants_count=int}
channel={_='channel', creator=Bool, left=Bool, broadcast=Bool, verified=Bool, megagroup=Bool, restricted=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=ChatAdminRights, banned_rights=ChatBannedRights, default_banned_rights=ChatBannedRights, participants_count=int}
```

View File

@ -0,0 +1,43 @@
---
title: channelAdminLogEventActionDefaultBannedRights
description: channelAdminLogEventActionDefaultBannedRights attributes, type and example
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: channelAdminLogEventActionDefaultBannedRights
[Back to constructors index](index.md)
### Attributes:
| Name | Type | Required |
|----------|---------------|----------|
|prev\_banned\_rights|[ChatBannedRights](../types/ChatBannedRights.md) | Yes|
|new\_banned\_rights|[ChatBannedRights](../types/ChatBannedRights.md) | Yes|
### Type: [ChannelAdminLogEventAction](../types/ChannelAdminLogEventAction.md)
### Example:
```php
$channelAdminLogEventActionDefaultBannedRights = ['_' => 'channelAdminLogEventActionDefaultBannedRights', 'prev_banned_rights' => ChatBannedRights, 'new_banned_rights' => ChatBannedRights];
```
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
```
{"_": "channelAdminLogEventActionDefaultBannedRights", "prev_banned_rights": ChatBannedRights, "new_banned_rights": ChatBannedRights}
```
Or, if you're into Lua:
```lua
channelAdminLogEventActionDefaultBannedRights={_='channelAdminLogEventActionDefaultBannedRights', prev_banned_rights=ChatBannedRights, new_banned_rights=ChatBannedRights}
```

View File

@ -0,0 +1,42 @@
---
title: channelAdminLogEventActionStopPoll
description: channelAdminLogEventActionStopPoll attributes, type and example
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: channelAdminLogEventActionStopPoll
[Back to constructors index](index.md)
### Attributes:
| Name | Type | Required |
|----------|---------------|----------|
|message|[Message](../types/Message.md) | Optional|
### Type: [ChannelAdminLogEventAction](../types/ChannelAdminLogEventAction.md)
### Example:
```php
$channelAdminLogEventActionStopPoll = ['_' => 'channelAdminLogEventActionStopPoll', 'message' => Message];
```
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
```
{"_": "channelAdminLogEventActionStopPoll", "message": Message}
```
Or, if you're into Lua:
```lua
channelAdminLogEventActionStopPoll={_='channelAdminLogEventActionStopPoll', message=Message}
```

View File

@ -15,11 +15,12 @@ Channel participant admin
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|can\_edit|[Bool](../types/Bool.md) | Optional|Can edit?|
|self|[Bool](../types/Bool.md) | Optional||
|user\_id|[int](../types/int.md) | Yes|User ID|
|inviter\_id|[int](../types/int.md) | Yes|Inviter ID|
|inviter\_id|[int](../types/int.md) | Optional|Inviter ID|
|promoted\_by|[int](../types/int.md) | Yes|Promoted by|
|date|[int](../types/int.md) | Yes|Date|
|admin\_rights|[ChannelAdminRights](../types/ChannelAdminRights.md) | Yes|Admin rights|
|admin\_rights|[ChatAdminRights](../types/ChatAdminRights.md) | Yes||
@ -29,20 +30,20 @@ Channel participant admin
### Example:
```php
$channelParticipantAdmin = ['_' => 'channelParticipantAdmin', 'can_edit' => Bool, 'user_id' => int, 'inviter_id' => int, 'promoted_by' => int, 'date' => int, 'admin_rights' => ChannelAdminRights];
$channelParticipantAdmin = ['_' => 'channelParticipantAdmin', 'can_edit' => Bool, 'self' => Bool, 'user_id' => int, 'inviter_id' => int, 'promoted_by' => int, 'date' => int, 'admin_rights' => ChatAdminRights];
```
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
```
{"_": "channelParticipantAdmin", "can_edit": Bool, "user_id": int, "inviter_id": int, "promoted_by": int, "date": int, "admin_rights": ChannelAdminRights}
{"_": "channelParticipantAdmin", "can_edit": Bool, "self": Bool, "user_id": int, "inviter_id": int, "promoted_by": int, "date": int, "admin_rights": ChatAdminRights}
```
Or, if you're into Lua:
```lua
channelParticipantAdmin={_='channelParticipantAdmin', can_edit=Bool, user_id=int, inviter_id=int, promoted_by=int, date=int, admin_rights=ChannelAdminRights}
channelParticipantAdmin={_='channelParticipantAdmin', can_edit=Bool, self=Bool, user_id=int, inviter_id=int, promoted_by=int, date=int, admin_rights=ChatAdminRights}
```

View File

@ -18,7 +18,7 @@ Channel participant banned
|user\_id|[int](../types/int.md) | Yes|User ID|
|kicked\_by|[int](../types/int.md) | Yes|Kicked by|
|date|[int](../types/int.md) | Yes|Date|
|banned\_rights|[ChannelBannedRights](../types/ChannelBannedRights.md) | Yes|Banned rights|
|banned\_rights|[ChatBannedRights](../types/ChatBannedRights.md) | Yes||
@ -28,20 +28,20 @@ Channel participant banned
### Example:
```php
$channelParticipantBanned = ['_' => 'channelParticipantBanned', 'left' => Bool, 'user_id' => int, 'kicked_by' => int, 'date' => int, 'banned_rights' => ChannelBannedRights];
$channelParticipantBanned = ['_' => 'channelParticipantBanned', 'left' => Bool, 'user_id' => int, 'kicked_by' => int, 'date' => int, 'banned_rights' => ChatBannedRights];
```
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
```
{"_": "channelParticipantBanned", "left": Bool, "user_id": int, "kicked_by": int, "date": int, "banned_rights": ChannelBannedRights}
{"_": "channelParticipantBanned", "left": Bool, "user_id": int, "kicked_by": int, "date": int, "banned_rights": ChatBannedRights}
```
Or, if you're into Lua:
```lua
channelParticipantBanned={_='channelParticipantBanned', left=Bool, user_id=int, kicked_by=int, date=int, banned_rights=ChannelBannedRights}
channelParticipantBanned={_='channelParticipantBanned', left=Bool, user_id=int, kicked_by=int, date=int, banned_rights=ChatBannedRights}
```

View File

@ -0,0 +1,42 @@
---
title: channelParticipantsContacts
description: channelParticipantsContacts attributes, type and example
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: channelParticipantsContacts
[Back to constructors index](index.md)
### Attributes:
| Name | Type | Required |
|----------|---------------|----------|
|q|[string](../types/string.md) | Yes|
### Type: [ChannelParticipantsFilter](../types/ChannelParticipantsFilter.md)
### Example:
```php
$channelParticipantsContacts = ['_' => 'channelParticipantsContacts', 'q' => 'string'];
```
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
```
{"_": "channelParticipantsContacts", "q": "string"}
```
Or, if you're into Lua:
```lua
channelParticipantsContacts={_='channelParticipantsContacts', q='string'}
```

View File

@ -17,8 +17,6 @@ Chat
|creator|[Bool](../types/Bool.md) | Optional|Creator?|
|kicked|[Bool](../types/Bool.md) | Optional|Kicked?|
|left|[Bool](../types/Bool.md) | Optional|Left?|
|admins\_enabled|[Bool](../types/Bool.md) | Optional|Admins enabled?|
|admin|[Bool](../types/Bool.md) | Optional|Admin?|
|deactivated|[Bool](../types/Bool.md) | Optional|Deactivated?|
|id|[int](../types/int.md) | Yes|ID|
|title|[string](../types/string.md) | Yes|Title|
@ -27,6 +25,8 @@ Chat
|date|[int](../types/int.md) | Yes|Date|
|version|[int](../types/int.md) | Yes|Version|
|migrated\_to|[InputChannel](../types/InputChannel.md) | Optional|Migrated to|
|admin\_rights|[ChatAdminRights](../types/ChatAdminRights.md) | Optional||
|default\_banned\_rights|[ChatBannedRights](../types/ChatBannedRights.md) | Optional||
@ -36,20 +36,20 @@ Chat
### Example:
```php
$chat = ['_' => 'chat', 'creator' => Bool, 'kicked' => Bool, 'left' => Bool, 'admins_enabled' => Bool, 'admin' => Bool, 'deactivated' => Bool, 'id' => int, 'title' => 'string', 'photo' => ChatPhoto, 'participants_count' => int, 'date' => int, 'version' => int, 'migrated_to' => InputChannel];
$chat = ['_' => 'chat', 'creator' => Bool, 'kicked' => Bool, 'left' => Bool, 'deactivated' => Bool, 'id' => int, 'title' => 'string', 'photo' => ChatPhoto, 'participants_count' => int, 'date' => int, 'version' => int, 'migrated_to' => InputChannel, 'admin_rights' => ChatAdminRights, 'default_banned_rights' => ChatBannedRights];
```
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
```
{"_": "chat", "creator": Bool, "kicked": Bool, "left": Bool, "admins_enabled": Bool, "admin": Bool, "deactivated": Bool, "id": int, "title": "string", "photo": ChatPhoto, "participants_count": int, "date": int, "version": int, "migrated_to": InputChannel}
{"_": "chat", "creator": Bool, "kicked": Bool, "left": Bool, "deactivated": Bool, "id": int, "title": "string", "photo": ChatPhoto, "participants_count": int, "date": int, "version": int, "migrated_to": InputChannel, "admin_rights": ChatAdminRights, "default_banned_rights": ChatBannedRights}
```
Or, if you're into Lua:
```lua
chat={_='chat', creator=Bool, kicked=Bool, left=Bool, admins_enabled=Bool, admin=Bool, deactivated=Bool, id=int, title='string', photo=ChatPhoto, participants_count=int, date=int, version=int, migrated_to=InputChannel}
chat={_='chat', creator=Bool, kicked=Bool, left=Bool, deactivated=Bool, id=int, title='string', photo=ChatPhoto, participants_count=int, date=int, version=int, migrated_to=InputChannel, admin_rights=ChatAdminRights, default_banned_rights=ChatBannedRights}
```

View File

@ -0,0 +1,49 @@
---
title: chatAdminRights
description: chatAdminRights attributes, type and example
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: chatAdminRights
[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|
|pin\_messages|[Bool](../types/Bool.md) | Optional|
|add\_admins|[Bool](../types/Bool.md) | Optional|
### Type: [ChatAdminRights](../types/ChatAdminRights.md)
### Example:
```php
$chatAdminRights = ['_' => 'chatAdminRights', 'change_info' => Bool, 'post_messages' => Bool, 'edit_messages' => Bool, 'delete_messages' => Bool, 'ban_users' => Bool, 'invite_users' => Bool, 'pin_messages' => Bool, 'add_admins' => Bool];
```
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
```
{"_": "chatAdminRights", "change_info": Bool, "post_messages": Bool, "edit_messages": Bool, "delete_messages": Bool, "ban_users": Bool, "invite_users": Bool, "pin_messages": Bool, "add_admins": Bool}
```
Or, if you're into Lua:
```lua
chatAdminRights={_='chatAdminRights', change_info=Bool, post_messages=Bool, edit_messages=Bool, delete_messages=Bool, ban_users=Bool, invite_users=Bool, pin_messages=Bool, add_admins=Bool}
```

View File

@ -0,0 +1,54 @@
---
title: chatBannedRights
description: chatBannedRights attributes, type and example
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: chatBannedRights
[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|
|send\_polls|[Bool](../types/Bool.md) | Optional|
|change\_info|[Bool](../types/Bool.md) | Optional|
|invite\_users|[Bool](../types/Bool.md) | Optional|
|pin\_messages|[Bool](../types/Bool.md) | Optional|
|until\_date|[int](../types/int.md) | Yes|
### Type: [ChatBannedRights](../types/ChatBannedRights.md)
### Example:
```php
$chatBannedRights = ['_' => 'chatBannedRights', 'view_messages' => Bool, 'send_messages' => Bool, 'send_media' => Bool, 'send_stickers' => Bool, 'send_gifs' => Bool, 'send_games' => Bool, 'send_inline' => Bool, 'embed_links' => Bool, 'send_polls' => Bool, 'change_info' => Bool, 'invite_users' => Bool, 'pin_messages' => Bool, 'until_date' => int];
```
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
```
{"_": "chatBannedRights", "view_messages": Bool, "send_messages": Bool, "send_media": Bool, "send_stickers": Bool, "send_gifs": Bool, "send_games": Bool, "send_inline": Bool, "embed_links": Bool, "send_polls": Bool, "change_info": Bool, "invite_users": Bool, "pin_messages": Bool, "until_date": int}
```
Or, if you're into Lua:
```lua
chatBannedRights={_='chatBannedRights', view_messages=Bool, send_messages=Bool, send_media=Bool, send_stickers=Bool, send_gifs=Bool, send_games=Bool, send_inline=Bool, embed_links=Bool, send_polls=Bool, change_info=Bool, invite_users=Bool, pin_messages=Bool, until_date=int}
```

View File

@ -14,7 +14,9 @@ Chat full
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|can\_set\_username|[Bool](../types/Bool.md) | Optional||
|id|[int](../types/int.md) | Yes|ID|
|about|[string](../types/string.md) | Yes||
|participants|[ChatParticipants](../types/ChatParticipants.md) | Yes|Participants|
|chat\_photo|[Photo](../types/Photo.md) | Optional|Chat photo|
|notify\_settings|[PeerNotifySettings](../types/PeerNotifySettings.md) | Yes|Notify settings|
@ -30,20 +32,20 @@ Chat full
### Example:
```php
$chatFull = ['_' => 'chatFull', 'id' => int, 'participants' => ChatParticipants, 'chat_photo' => Photo, 'notify_settings' => PeerNotifySettings, 'exported_invite' => ExportedChatInvite, 'bot_info' => [BotInfo, BotInfo], 'pinned_msg_id' => int];
$chatFull = ['_' => 'chatFull', 'can_set_username' => Bool, 'id' => int, 'about' => 'string', 'participants' => ChatParticipants, 'chat_photo' => Photo, 'notify_settings' => PeerNotifySettings, 'exported_invite' => ExportedChatInvite, 'bot_info' => [BotInfo, BotInfo], 'pinned_msg_id' => int];
```
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
```
{"_": "chatFull", "id": int, "participants": ChatParticipants, "chat_photo": Photo, "notify_settings": PeerNotifySettings, "exported_invite": ExportedChatInvite, "bot_info": [BotInfo], "pinned_msg_id": int}
{"_": "chatFull", "can_set_username": Bool, "id": int, "about": "string", "participants": ChatParticipants, "chat_photo": Photo, "notify_settings": PeerNotifySettings, "exported_invite": ExportedChatInvite, "bot_info": [BotInfo], "pinned_msg_id": int}
```
Or, if you're into Lua:
```lua
chatFull={_='chatFull', id=int, participants=ChatParticipants, chat_photo=Photo, notify_settings=PeerNotifySettings, exported_invite=ExportedChatInvite, bot_info={BotInfo}, pinned_msg_id=int}
chatFull={_='chatFull', can_set_username=Bool, id=int, about='string', participants=ChatParticipants, chat_photo=Photo, notify_settings=PeerNotifySettings, exported_invite=ExportedChatInvite, bot_info={BotInfo}, pinned_msg_id=int}
```

View File

@ -0,0 +1,45 @@
---
title: codeSettings
description: codeSettings attributes, type and example
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: codeSettings
[Back to constructors index](index.md)
### Attributes:
| Name | Type | Required |
|----------|---------------|----------|
|allow\_flashcall|[Bool](../types/Bool.md) | Optional|
|current\_number|[Bool](../types/Bool.md) | Optional|
|app\_hash\_persistent|[Bool](../types/Bool.md) | Optional|
|app\_hash|[string](../types/string.md) | Optional|
### Type: [CodeSettings](../types/CodeSettings.md)
### Example:
```php
$codeSettings = ['_' => 'codeSettings', 'allow_flashcall' => Bool, 'current_number' => Bool, 'app_hash_persistent' => Bool, 'app_hash' => 'string'];
```
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
```
{"_": "codeSettings", "allow_flashcall": Bool, "current_number": Bool, "app_hash_persistent": Bool, "app_hash": "string"}
```
Or, if you're into Lua:
```lua
codeSettings={_='codeSettings', allow_flashcall=Bool, current_number=Bool, app_hash_persistent=Bool, app_hash='string'}
```

View File

@ -20,7 +20,7 @@ Document
|date|[int](../types/int.md) | Yes|Date|
|mime\_type|[string](../types/string.md) | Yes|Mime type|
|size|[int](../types/int.md) | Yes|Size|
|thumb|[PhotoSize](../types/PhotoSize.md) | Optional|Thumbnail|
|thumbs|Array of [PhotoSize](../types/PhotoSize.md) | Optional||
|dc\_id|[int](../types/int.md) | Yes|DC ID|
|attributes|Array of [DocumentAttribute](../types/DocumentAttribute.md) | Yes|Attributes|
@ -32,20 +32,20 @@ Document
### Example:
```php
$document = ['_' => 'document', 'id' => long, 'access_hash' => long, 'file_reference' => 'bytes', 'date' => int, 'mime_type' => 'string', 'size' => int, 'thumb' => PhotoSize, 'dc_id' => int, 'attributes' => [DocumentAttribute, DocumentAttribute]];
$document = ['_' => 'document', 'id' => long, 'access_hash' => long, 'file_reference' => 'bytes', 'date' => int, 'mime_type' => 'string', 'size' => int, 'thumbs' => [PhotoSize, PhotoSize], 'dc_id' => int, 'attributes' => [DocumentAttribute, DocumentAttribute]];
```
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
```
{"_": "document", "id": long, "access_hash": long, "file_reference": {"_": "bytes", "bytes":"base64 encoded bytes"}, "date": int, "mime_type": "string", "size": int, "thumb": PhotoSize, "dc_id": int, "attributes": [DocumentAttribute]}
{"_": "document", "id": long, "access_hash": long, "file_reference": {"_": "bytes", "bytes":"base64 encoded bytes"}, "date": int, "mime_type": "string", "size": int, "thumbs": [PhotoSize], "dc_id": int, "attributes": [DocumentAttribute]}
```
Or, if you're into Lua:
```lua
document={_='document', id=long, access_hash=long, file_reference='bytes', date=int, mime_type='string', size=int, thumb=PhotoSize, dc_id=int, attributes={DocumentAttribute}}
document={_='document', id=long, access_hash=long, file_reference='bytes', date=int, mime_type='string', size=int, thumbs={PhotoSize}, dc_id=int, attributes={DocumentAttribute}}
```

View File

@ -31,6 +31,10 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
[$account\_tmpPassword](../constructors/account_tmpPassword.md) = \['tmp_password' => [bytes](../types/bytes.md), 'valid_until' => [int](../types/int.md), \];<a name="account_tmpPassword"></a>
[$account\_wallPapers](../constructors/account_wallPapers.md) = \['hash' => [int](../types/int.md), 'wallpapers' => \[[WallPaper](../types/WallPaper.md)\], \];<a name="account_wallPapers"></a>
[$account\_wallPapersNotModified](../constructors/account_wallPapersNotModified.md) = \[\];<a name="account_wallPapersNotModified"></a>
[$account\_webAuthorizations](../constructors/account_webAuthorizations.md) = \['authorizations' => \[[WebAuthorization](../types/WebAuthorization.md)\], 'users' => \[[User](../types/User.md)\], \];<a name="account_webAuthorizations"></a>
***
@ -101,7 +105,7 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
<br><br>[$cdnPublicKey](../constructors/cdnPublicKey.md) = \['dc_id' => [int](../types/int.md), 'public_key' => [string](../types/string.md), \];<a name="cdnPublicKey"></a>
***
<br><br>[$channel](../constructors/channel.md) = \['creator' => [Bool](../types/Bool.md), 'left' => [Bool](../types/Bool.md), 'editor' => [Bool](../types/Bool.md), 'broadcast' => [Bool](../types/Bool.md), 'verified' => [Bool](../types/Bool.md), 'megagroup' => [Bool](../types/Bool.md), 'restricted' => [Bool](../types/Bool.md), 'democracy' => [Bool](../types/Bool.md), 'signatures' => [Bool](../types/Bool.md), 'min' => [Bool](../types/Bool.md), 'id' => [int](../types/int.md), 'access_hash' => [long](../types/long.md), 'title' => [string](../types/string.md), 'username' => [string](../types/string.md), 'photo' => [ChatPhoto](../types/ChatPhoto.md), 'date' => [int](../types/int.md), 'version' => [int](../types/int.md), 'restriction_reason' => [string](../types/string.md), 'admin_rights' => [ChannelAdminRights](../types/ChannelAdminRights.md), 'banned_rights' => [ChannelBannedRights](../types/ChannelBannedRights.md), 'participants_count' => [int](../types/int.md), \];<a name="channel"></a>
<br><br>[$channel](../constructors/channel.md) = \['creator' => [Bool](../types/Bool.md), 'left' => [Bool](../types/Bool.md), 'broadcast' => [Bool](../types/Bool.md), 'verified' => [Bool](../types/Bool.md), 'megagroup' => [Bool](../types/Bool.md), 'restricted' => [Bool](../types/Bool.md), 'signatures' => [Bool](../types/Bool.md), 'min' => [Bool](../types/Bool.md), 'id' => [int](../types/int.md), 'access_hash' => [long](../types/long.md), 'title' => [string](../types/string.md), 'username' => [string](../types/string.md), 'photo' => [ChatPhoto](../types/ChatPhoto.md), 'date' => [int](../types/int.md), 'version' => [int](../types/int.md), 'restriction_reason' => [string](../types/string.md), 'admin_rights' => [ChatAdminRights](../types/ChatAdminRights.md), 'banned_rights' => [ChatBannedRights](../types/ChatBannedRights.md), 'default_banned_rights' => [ChatBannedRights](../types/ChatBannedRights.md), 'participants_count' => [int](../types/int.md), \];<a name="channel"></a>
***
<br><br>[$channelAdminLogEvent](../constructors/channelAdminLogEvent.md) = \['id' => [long](../types/long.md), 'date' => [int](../types/int.md), 'user_id' => [int](../types/int.md), 'action' => [ChannelAdminLogEventAction](../types/ChannelAdminLogEventAction.md), \];<a name="channelAdminLogEvent"></a>
@ -121,6 +125,9 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
***
<br><br>[$channelAdminLogEventActionChangeUsername](../constructors/channelAdminLogEventActionChangeUsername.md) = \['prev_value' => [string](../types/string.md), 'new_value' => [string](../types/string.md), \];<a name="channelAdminLogEventActionChangeUsername"></a>
***
<br><br>[$channelAdminLogEventActionDefaultBannedRights](../constructors/channelAdminLogEventActionDefaultBannedRights.md) = \['prev_banned_rights' => [ChatBannedRights](../types/ChatBannedRights.md), 'new_banned_rights' => [ChatBannedRights](../types/ChatBannedRights.md), \];<a name="channelAdminLogEventActionDefaultBannedRights"></a>
***
<br><br>[$channelAdminLogEventActionDeleteMessage](../constructors/channelAdminLogEventActionDeleteMessage.md) = \['message' => [Message](../types/Message.md), \];<a name="channelAdminLogEventActionDeleteMessage"></a>
@ -142,6 +149,9 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
***
<br><br>[$channelAdminLogEventActionParticipantToggleBan](../constructors/channelAdminLogEventActionParticipantToggleBan.md) = \['prev_participant' => [ChannelParticipant](../types/ChannelParticipant.md), 'new_participant' => [ChannelParticipant](../types/ChannelParticipant.md), \];<a name="channelAdminLogEventActionParticipantToggleBan"></a>
***
<br><br>[$channelAdminLogEventActionStopPoll](../constructors/channelAdminLogEventActionStopPoll.md) = \['message' => [Message](../types/Message.md), \];<a name="channelAdminLogEventActionStopPoll"></a>
***
<br><br>[$channelAdminLogEventActionToggleInvites](../constructors/channelAdminLogEventActionToggleInvites.md) = \['new_value' => [Bool](../types/Bool.md), \];<a name="channelAdminLogEventActionToggleInvites"></a>
@ -157,12 +167,6 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
***
<br><br>[$channelAdminLogEventsFilter](../constructors/channelAdminLogEventsFilter.md) = \['join' => [Bool](../types/Bool.md), 'leave' => [Bool](../types/Bool.md), 'invite' => [Bool](../types/Bool.md), 'ban' => [Bool](../types/Bool.md), 'unban' => [Bool](../types/Bool.md), 'kick' => [Bool](../types/Bool.md), 'unkick' => [Bool](../types/Bool.md), 'promote' => [Bool](../types/Bool.md), 'demote' => [Bool](../types/Bool.md), 'info' => [Bool](../types/Bool.md), 'settings' => [Bool](../types/Bool.md), 'pinned' => [Bool](../types/Bool.md), 'edit' => [Bool](../types/Bool.md), 'delete' => [Bool](../types/Bool.md), \];<a name="channelAdminLogEventsFilter"></a>
***
<br><br>[$channelAdminRights](../constructors/channelAdminRights.md) = \['change_info' => [Bool](../types/Bool.md), 'post_messages' => [Bool](../types/Bool.md), 'edit_messages' => [Bool](../types/Bool.md), 'delete_messages' => [Bool](../types/Bool.md), 'ban_users' => [Bool](../types/Bool.md), 'invite_users' => [Bool](../types/Bool.md), 'invite_link' => [Bool](../types/Bool.md), 'pin_messages' => [Bool](../types/Bool.md), 'add_admins' => [Bool](../types/Bool.md), 'manage_call' => [Bool](../types/Bool.md), \];<a name="channelAdminRights"></a>
***
<br><br>[$channelBannedRights](../constructors/channelBannedRights.md) = \['view_messages' => [Bool](../types/Bool.md), 'send_messages' => [Bool](../types/Bool.md), 'send_media' => [Bool](../types/Bool.md), 'send_stickers' => [Bool](../types/Bool.md), 'send_gifs' => [Bool](../types/Bool.md), 'send_games' => [Bool](../types/Bool.md), 'send_inline' => [Bool](../types/Bool.md), 'embed_links' => [Bool](../types/Bool.md), 'until_date' => [int](../types/int.md), \];<a name="channelBannedRights"></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>
@ -179,10 +183,10 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
<br><br>[$channelParticipant](../constructors/channelParticipant.md) = \['user_id' => [int](../types/int.md), 'date' => [int](../types/int.md), \];<a name="channelParticipant"></a>
***
<br><br>[$channelParticipantAdmin](../constructors/channelParticipantAdmin.md) = \['can_edit' => [Bool](../types/Bool.md), 'user_id' => [int](../types/int.md), 'inviter_id' => [int](../types/int.md), 'promoted_by' => [int](../types/int.md), 'date' => [int](../types/int.md), 'admin_rights' => [ChannelAdminRights](../types/ChannelAdminRights.md), \];<a name="channelParticipantAdmin"></a>
<br><br>[$channelParticipantAdmin](../constructors/channelParticipantAdmin.md) = \['can_edit' => [Bool](../types/Bool.md), 'self' => [Bool](../types/Bool.md), 'user_id' => [int](../types/int.md), 'inviter_id' => [int](../types/int.md), 'promoted_by' => [int](../types/int.md), 'date' => [int](../types/int.md), 'admin_rights' => [ChatAdminRights](../types/ChatAdminRights.md), \];<a name="channelParticipantAdmin"></a>
***
<br><br>[$channelParticipantBanned](../constructors/channelParticipantBanned.md) = \['left' => [Bool](../types/Bool.md), 'user_id' => [int](../types/int.md), 'kicked_by' => [int](../types/int.md), 'date' => [int](../types/int.md), 'banned_rights' => [ChannelBannedRights](../types/ChannelBannedRights.md), \];<a name="channelParticipantBanned"></a>
<br><br>[$channelParticipantBanned](../constructors/channelParticipantBanned.md) = \['left' => [Bool](../types/Bool.md), 'user_id' => [int](../types/int.md), 'kicked_by' => [int](../types/int.md), 'date' => [int](../types/int.md), 'banned_rights' => [ChatBannedRights](../types/ChatBannedRights.md), \];<a name="channelParticipantBanned"></a>
***
<br><br>[$channelParticipantCreator](../constructors/channelParticipantCreator.md) = \['user_id' => [int](../types/int.md), \];<a name="channelParticipantCreator"></a>
@ -199,6 +203,9 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
***
<br><br>[$channelParticipantsBots](../constructors/channelParticipantsBots.md) = \[\];<a name="channelParticipantsBots"></a>
***
<br><br>[$channelParticipantsContacts](../constructors/channelParticipantsContacts.md) = \['q' => [string](../types/string.md), \];<a name="channelParticipantsContacts"></a>
***
<br><br>[$channelParticipantsKicked](../constructors/channelParticipantsKicked.md) = \['q' => [string](../types/string.md), \];<a name="channelParticipantsKicked"></a>
@ -218,7 +225,13 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
[$channels\_channelParticipantsNotModified](../constructors/channels_channelParticipantsNotModified.md) = \[\];<a name="channels_channelParticipantsNotModified"></a>
***
<br><br>[$chat](../constructors/chat.md) = \['creator' => [Bool](../types/Bool.md), 'kicked' => [Bool](../types/Bool.md), 'left' => [Bool](../types/Bool.md), 'admins_enabled' => [Bool](../types/Bool.md), 'admin' => [Bool](../types/Bool.md), 'deactivated' => [Bool](../types/Bool.md), 'id' => [int](../types/int.md), 'title' => [string](../types/string.md), 'photo' => [ChatPhoto](../types/ChatPhoto.md), 'participants_count' => [int](../types/int.md), 'date' => [int](../types/int.md), 'version' => [int](../types/int.md), 'migrated_to' => [InputChannel](../types/InputChannel.md), \];<a name="chat"></a>
<br><br>[$chat](../constructors/chat.md) = \['creator' => [Bool](../types/Bool.md), 'kicked' => [Bool](../types/Bool.md), 'left' => [Bool](../types/Bool.md), 'deactivated' => [Bool](../types/Bool.md), 'id' => [int](../types/int.md), 'title' => [string](../types/string.md), 'photo' => [ChatPhoto](../types/ChatPhoto.md), 'participants_count' => [int](../types/int.md), 'date' => [int](../types/int.md), 'version' => [int](../types/int.md), 'migrated_to' => [InputChannel](../types/InputChannel.md), 'admin_rights' => [ChatAdminRights](../types/ChatAdminRights.md), 'default_banned_rights' => [ChatBannedRights](../types/ChatBannedRights.md), \];<a name="chat"></a>
***
<br><br>[$chatAdminRights](../constructors/chatAdminRights.md) = \['change_info' => [Bool](../types/Bool.md), 'post_messages' => [Bool](../types/Bool.md), 'edit_messages' => [Bool](../types/Bool.md), 'delete_messages' => [Bool](../types/Bool.md), 'ban_users' => [Bool](../types/Bool.md), 'invite_users' => [Bool](../types/Bool.md), 'pin_messages' => [Bool](../types/Bool.md), 'add_admins' => [Bool](../types/Bool.md), \];<a name="chatAdminRights"></a>
***
<br><br>[$chatBannedRights](../constructors/chatBannedRights.md) = \['view_messages' => [Bool](../types/Bool.md), 'send_messages' => [Bool](../types/Bool.md), 'send_media' => [Bool](../types/Bool.md), 'send_stickers' => [Bool](../types/Bool.md), 'send_gifs' => [Bool](../types/Bool.md), 'send_games' => [Bool](../types/Bool.md), 'send_inline' => [Bool](../types/Bool.md), 'embed_links' => [Bool](../types/Bool.md), 'send_polls' => [Bool](../types/Bool.md), 'change_info' => [Bool](../types/Bool.md), 'invite_users' => [Bool](../types/Bool.md), 'pin_messages' => [Bool](../types/Bool.md), 'until_date' => [int](../types/int.md), \];<a name="chatBannedRights"></a>
***
<br><br>[$chatEmpty](../constructors/chatEmpty.md) = \['id' => [int](../types/int.md), \];<a name="chatEmpty"></a>
@ -227,7 +240,7 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
<br><br>[$chatForbidden](../constructors/chatForbidden.md) = \['id' => [int](../types/int.md), 'title' => [string](../types/string.md), \];<a name="chatForbidden"></a>
***
<br><br>[$chatFull](../constructors/chatFull.md) = \['id' => [int](../types/int.md), 'participants' => [ChatParticipants](../types/ChatParticipants.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)\], 'pinned_msg_id' => [int](../types/int.md), \];<a name="chatFull"></a>
<br><br>[$chatFull](../constructors/chatFull.md) = \['can_set_username' => [Bool](../types/Bool.md), 'id' => [int](../types/int.md), 'about' => [string](../types/string.md), 'participants' => [ChatParticipants](../types/ChatParticipants.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)\], 'pinned_msg_id' => [int](../types/int.md), \];<a name="chatFull"></a>
***
<br><br>[$chatInvite](../constructors/chatInvite.md) = \['channel' => [Bool](../types/Bool.md), 'broadcast' => [Bool](../types/Bool.md), 'public' => [Bool](../types/Bool.md), 'megagroup' => [Bool](../types/Bool.md), 'title' => [string](../types/string.md), 'photo' => [ChatPhoto](../types/ChatPhoto.md), 'participants_count' => [int](../types/int.md), 'participants' => \[[User](../types/User.md)\], \];<a name="chatInvite"></a>
@ -265,6 +278,9 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
***
<br><br>[$chatPhotoEmpty](../constructors/chatPhotoEmpty.md) = \[\];<a name="chatPhotoEmpty"></a>
***
<br><br>[$codeSettings](../constructors/codeSettings.md) = \['allow_flashcall' => [Bool](../types/Bool.md), 'current_number' => [Bool](../types/Bool.md), 'app_hash_persistent' => [Bool](../types/Bool.md), 'app_hash' => [string](../types/string.md), \];<a name="codeSettings"></a>
***
<br><br>[$config](../constructors/config.md) = \['phonecalls_enabled' => [Bool](../types/Bool.md), 'default_p2p_contacts' => [Bool](../types/Bool.md), 'preload_featured_stickers' => [Bool](../types/Bool.md), 'ignore_phone_entities' => [Bool](../types/Bool.md), 'revoke_pm_inbox' => [Bool](../types/Bool.md), 'blocked_mode' => [Bool](../types/Bool.md), 'pfs_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)\], 'dc_txt_domain_name' => [string](../types/string.md), 'chat_size_max' => [int](../types/int.md), 'megagroup_size_max' => [int](../types/int.md), 'forwarded_count_max' => [int](../types/int.md), 'online_update_period_ms' => [int](../types/int.md), 'offline_blur_timeout_ms' => [int](../types/int.md), 'offline_idle_timeout_ms' => [int](../types/int.md), 'online_cloud_timeout_ms' => [int](../types/int.md), 'notify_cloud_delay_ms' => [int](../types/int.md), 'notify_default_delay_ms' => [int](../types/int.md), 'push_chat_period_ms' => [int](../types/int.md), 'push_chat_limit' => [int](../types/int.md), 'saved_gifs_limit' => [int](../types/int.md), 'edit_time_limit' => [int](../types/int.md), 'revoke_time_limit' => [int](../types/int.md), 'revoke_pm_time_limit' => [int](../types/int.md), 'rating_e_decay' => [int](../types/int.md), 'stickers_recent_limit' => [int](../types/int.md), 'stickers_faved_limit' => [int](../types/int.md), 'channels_read_media_period' => [int](../types/int.md), 'tmp_sessions' => [int](../types/int.md), 'pinned_dialogs_count_max' => [int](../types/int.md), 'call_receive_timeout_ms' => [int](../types/int.md), 'call_ring_timeout_ms' => [int](../types/int.md), 'call_connect_timeout_ms' => [int](../types/int.md), 'call_packet_timeout_ms' => [int](../types/int.md), 'me_url_prefix' => [string](../types/string.md), 'autoupdate_url_prefix' => [string](../types/string.md), 'gif_search_username' => [string](../types/string.md), 'venue_search_username' => [string](../types/string.md), 'img_search_username' => [string](../types/string.md), 'static_maps_provider' => [string](../types/string.md), 'caption_length_max' => [int](../types/int.md), 'message_length_max' => [int](../types/int.md), 'webfile_dc_id' => [int](../types/int.md), 'suggested_lang_code' => [string](../types/string.md), 'lang_pack_version' => [int](../types/int.md), 'base_lang_pack_version' => [int](../types/int.md), \];<a name="config"></a>
@ -406,7 +422,7 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
<br><br>[$dialogPeer](../constructors/dialogPeer.md) = \['peer' => [Peer](../types/Peer.md), \];<a name="dialogPeer"></a>
***
<br><br>[$document](../constructors/document.md) = \['id' => [long](../types/long.md), 'access_hash' => [long](../types/long.md), 'file_reference' => [bytes](../types/bytes.md), 'date' => [int](../types/int.md), 'mime_type' => [string](../types/string.md), 'size' => [int](../types/int.md), 'thumb' => [PhotoSize](../types/PhotoSize.md), 'dc_id' => [int](../types/int.md), 'attributes' => \[[DocumentAttribute](../types/DocumentAttribute.md)\], \];<a name="document"></a>
<br><br>[$document](../constructors/document.md) = \['id' => [long](../types/long.md), 'access_hash' => [long](../types/long.md), 'file_reference' => [bytes](../types/bytes.md), 'date' => [int](../types/int.md), 'mime_type' => [string](../types/string.md), 'size' => [int](../types/int.md), 'thumbs' => \[[PhotoSize](../types/PhotoSize.md)\], 'dc_id' => [int](../types/int.md), 'attributes' => \[[DocumentAttribute](../types/DocumentAttribute.md)\], \];<a name="document"></a>
***
<br><br>[$documentAttributeAnimated](../constructors/documentAttributeAnimated.md) = \[\];<a name="documentAttributeAnimated"></a>
@ -904,6 +920,12 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
***
<br><br>[$inputUserSelf](../constructors/inputUserSelf.md) = \[\];<a name="inputUserSelf"></a>
***
<br><br>[$inputWallPaper](../constructors/inputWallPaper.md) = \['id' => [long](../types/long.md), 'access_hash' => [long](../types/long.md), \];<a name="inputWallPaper"></a>
***
<br><br>[$inputWallPaperSlug](../constructors/inputWallPaperSlug.md) = \['slug' => [string](../types/string.md), \];<a name="inputWallPaperSlug"></a>
***
<br><br>[$inputWebDocument](../constructors/inputWebDocument.md) = \['url' => [string](../types/string.md), 'size' => [int](../types/int.md), 'mime_type' => [string](../types/string.md), 'attributes' => \[[DocumentAttribute](../types/DocumentAttribute.md)\], \];<a name="inputWebDocument"></a>
@ -1208,7 +1230,7 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
[$messages\_messagesNotModified](../constructors/messages_messagesNotModified.md) = \['count' => [int](../types/int.md), \];<a name="messages_messagesNotModified"></a>
[$messages\_messagesSlice](../constructors/messages_messagesSlice.md) = \['count' => [int](../types/int.md), 'messages' => \[[Message](../types/Message.md)\], 'chats' => \[[Chat](../types/Chat.md)\], 'users' => \[[User](../types/User.md)\], \];<a name="messages_messagesSlice"></a>
[$messages\_messagesSlice](../constructors/messages_messagesSlice.md) = \['inexact' => [Bool](../types/Bool.md), 'count' => [int](../types/int.md), 'messages' => \[[Message](../types/Message.md)\], 'chats' => \[[Chat](../types/Chat.md)\], 'users' => \[[User](../types/User.md)\], \];<a name="messages_messagesSlice"></a>
[$messages\_peerDialogs](../constructors/messages_peerDialogs.md) = \['dialogs' => \[[Dialog](../types/Dialog.md)\], 'messages' => \[[Message](../types/Message.md)\], 'chats' => \[[Chat](../types/Chat.md)\], 'users' => \[[User](../types/User.md)\], 'state' => [updates\_State](../types/updates_State.md), \];<a name="messages_peerDialogs"></a>
@ -1463,6 +1485,9 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
***
<br><br>[$photoSizeEmpty](../constructors/photoSizeEmpty.md) = \['type' => [string](../types/string.md), \];<a name="photoSizeEmpty"></a>
***
<br><br>[$photoStrippedSize](../constructors/photoStrippedSize.md) = \['type' => [string](../types/string.md), 'bytes' => [bytes](../types/bytes.md), \];<a name="photoStrippedSize"></a>
***
<br><br>[$photos\_photo](../constructors/photos_photo.md) = \['photo' => [Photo](../types/Photo.md), 'users' => \[[User](../types/User.md)\], \];<a name="photos_photo"></a>
@ -1858,7 +1883,7 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
<br><br>[$updateChannelWebPage](../constructors/updateChannelWebPage.md) = \['channel_id' => [int](../types/int.md), 'webpage' => [WebPage](../types/WebPage.md), 'pts' => [int](../types/int.md), 'pts_count' => [int](../types/int.md), \];<a name="updateChannelWebPage"></a>
***
<br><br>[$updateChatAdmins](../constructors/updateChatAdmins.md) = \['chat_id' => [int](../types/int.md), 'enabled' => [Bool](../types/Bool.md), 'version' => [int](../types/int.md), \];<a name="updateChatAdmins"></a>
<br><br>[$updateChatDefaultBannedRights](../constructors/updateChatDefaultBannedRights.md) = \['peer' => [Peer](../types/Peer.md), 'default_banned_rights' => [ChatBannedRights](../types/ChatBannedRights.md), 'version' => [int](../types/int.md), \];<a name="updateChatDefaultBannedRights"></a>
***
<br><br>[$updateChatParticipantAdd](../constructors/updateChatParticipantAdd.md) = \['chat_id' => [int](../types/int.md), 'user_id' => [int](../types/int.md), 'inviter_id' => [int](../types/int.md), 'date' => [int](../types/int.md), 'version' => [int](../types/int.md), \];<a name="updateChatParticipantAdd"></a>
@ -2105,10 +2130,10 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
<br><br>[$userStatusRecently](../constructors/userStatusRecently.md) = \[\];<a name="userStatusRecently"></a>
***
<br><br>[$wallPaper](../constructors/wallPaper.md) = \['id' => [int](../types/int.md), 'title' => [string](../types/string.md), 'sizes' => \[[PhotoSize](../types/PhotoSize.md)\], 'color' => [int](../types/int.md), \];<a name="wallPaper"></a>
<br><br>[$wallPaper](../constructors/wallPaper.md) = \['id' => [long](../types/long.md), 'creator' => [Bool](../types/Bool.md), 'default' => [Bool](../types/Bool.md), 'pattern' => [Bool](../types/Bool.md), 'dark' => [Bool](../types/Bool.md), 'access_hash' => [long](../types/long.md), 'slug' => [string](../types/string.md), 'document' => [Document](../types/Document.md), 'settings' => [WallPaperSettings](../types/WallPaperSettings.md), \];<a name="wallPaper"></a>
***
<br><br>[$wallPaperSolid](../constructors/wallPaperSolid.md) = \['id' => [int](../types/int.md), 'title' => [string](../types/string.md), 'bg_color' => [int](../types/int.md), 'color' => [int](../types/int.md), \];<a name="wallPaperSolid"></a>
<br><br>[$wallPaperSettings](../constructors/wallPaperSettings.md) = \['blur' => [Bool](../types/Bool.md), 'motion' => [Bool](../types/Bool.md), 'background_color' => [int](../types/int.md), 'intensity' => [int](../types/int.md), \];<a name="wallPaperSettings"></a>
***
<br><br>[$webAuthorization](../constructors/webAuthorization.md) = \['hash' => [long](../types/long.md), 'bot_id' => [int](../types/int.md), 'domain' => [string](../types/string.md), 'browser' => [string](../types/string.md), 'platform' => [string](../types/string.md), 'date_created' => [int](../types/int.md), 'date_active' => [int](../types/int.md), 'ip' => [string](../types/string.md), 'region' => [string](../types/string.md), \];<a name="webAuthorization"></a>

View File

@ -0,0 +1,43 @@
---
title: inputWallPaper
description: inputWallPaper attributes, type and example
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: inputWallPaper
[Back to constructors index](index.md)
### Attributes:
| Name | Type | Required |
|----------|---------------|----------|
|id|[long](../types/long.md) | Yes|
|access\_hash|[long](../types/long.md) | Yes|
### Type: [InputWallPaper](../types/InputWallPaper.md)
### Example:
```php
$inputWallPaper = ['_' => 'inputWallPaper', 'id' => long, 'access_hash' => long];
```
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
```
{"_": "inputWallPaper", "id": long, "access_hash": long}
```
Or, if you're into Lua:
```lua
inputWallPaper={_='inputWallPaper', id=long, access_hash=long}
```

View File

@ -0,0 +1,42 @@
---
title: inputWallPaperSlug
description: inputWallPaperSlug attributes, type and example
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: inputWallPaperSlug
[Back to constructors index](index.md)
### Attributes:
| Name | Type | Required |
|----------|---------------|----------|
|slug|[string](../types/string.md) | Yes|
### Type: [InputWallPaper](../types/InputWallPaper.md)
### Example:
```php
$inputWallPaperSlug = ['_' => 'inputWallPaperSlug', 'slug' => 'string'];
```
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
```
{"_": "inputWallPaperSlug", "slug": "string"}
```
Or, if you're into Lua:
```lua
inputWallPaperSlug={_='inputWallPaperSlug', slug='string'}
```

View File

@ -14,6 +14,7 @@ Messages slice
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|inexact|[Bool](../types/Bool.md) | Optional||
|count|[int](../types/int.md) | Yes|Count|
|messages|Array of [Message](../types/Message.md) | Yes|Messages|
|chats|Array of [Chat](../types/Chat.md) | Yes|Chats|
@ -27,20 +28,20 @@ Messages slice
### Example:
```php
$messages_messagesSlice = ['_' => 'messages.messagesSlice', 'count' => int, 'messages' => [Message, Message], 'chats' => [Chat, Chat], 'users' => [User, User]];
$messages_messagesSlice = ['_' => 'messages.messagesSlice', 'inexact' => Bool, 'count' => int, 'messages' => [Message, Message], 'chats' => [Chat, Chat], 'users' => [User, User]];
```
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
```
{"_": "messages.messagesSlice", "count": int, "messages": [Message], "chats": [Chat], "users": [User]}
{"_": "messages.messagesSlice", "inexact": Bool, "count": int, "messages": [Message], "chats": [Chat], "users": [User]}
```
Or, if you're into Lua:
```lua
messages_messagesSlice={_='messages.messagesSlice', count=int, messages={Message}, chats={Chat}, users={User}}
messages_messagesSlice={_='messages.messagesSlice', inexact=Bool, count=int, messages={Message}, chats={Chat}, users={User}}
```

View File

@ -0,0 +1,43 @@
---
title: photoStrippedSize
description: photoStrippedSize attributes, type and example
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: photoStrippedSize
[Back to constructors index](index.md)
### Attributes:
| Name | Type | Required |
|----------|---------------|----------|
|type|[string](../types/string.md) | Yes|
|bytes|[bytes](../types/bytes.md) | Yes|
### Type: [PhotoSize](../types/PhotoSize.md)
### Example:
```php
$photoStrippedSize = ['_' => 'photoStrippedSize', 'type' => 'string', 'bytes' => 'bytes'];
```
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
```
{"_": "photoStrippedSize", "type": "string", "bytes": {"_": "bytes", "bytes":"base64 encoded bytes"}}
```
Or, if you're into Lua:
```lua
photoStrippedSize={_='photoStrippedSize', type='string', bytes='bytes'}
```

View File

@ -0,0 +1,44 @@
---
title: updateChatDefaultBannedRights
description: updateChatDefaultBannedRights attributes, type and example
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: updateChatDefaultBannedRights
[Back to constructors index](index.md)
### Attributes:
| Name | Type | Required |
|----------|---------------|----------|
|peer|[Peer](../types/Peer.md) | Yes|
|default\_banned\_rights|[ChatBannedRights](../types/ChatBannedRights.md) | Yes|
|version|[int](../types/int.md) | Yes|
### Type: [Update](../types/Update.md)
### Example:
```php
$updateChatDefaultBannedRights = ['_' => 'updateChatDefaultBannedRights', 'peer' => Peer, 'default_banned_rights' => ChatBannedRights, 'version' => int];
```
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
```
{"_": "updateChatDefaultBannedRights", "peer": Peer, "default_banned_rights": ChatBannedRights, "version": int}
```
Or, if you're into Lua:
```lua
updateChatDefaultBannedRights={_='updateChatDefaultBannedRights', peer=Peer, default_banned_rights=ChatBannedRights, version=int}
```

View File

@ -14,10 +14,15 @@ Wall paper
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|id|[int](../types/int.md) | Yes|ID|
|title|[string](../types/string.md) | Yes|Title|
|sizes|Array of [PhotoSize](../types/PhotoSize.md) | Yes|Sizes|
|color|[int](../types/int.md) | Yes|Color|
|id|[long](../types/long.md) | Yes||
|creator|[Bool](../types/Bool.md) | Optional||
|default|[Bool](../types/Bool.md) | Optional||
|pattern|[Bool](../types/Bool.md) | Optional||
|dark|[Bool](../types/Bool.md) | Optional||
|access\_hash|[long](../types/long.md) | Yes||
|slug|[string](../types/string.md) | Yes||
|document|[Document](../types/Document.md) | Optional||
|settings|[WallPaperSettings](../types/WallPaperSettings.md) | Optional||
@ -27,20 +32,20 @@ Wall paper
### Example:
```php
$wallPaper = ['_' => 'wallPaper', 'id' => int, 'title' => 'string', 'sizes' => [PhotoSize, PhotoSize], 'color' => int];
$wallPaper = ['_' => 'wallPaper', 'id' => long, 'creator' => Bool, 'default' => Bool, 'pattern' => Bool, 'dark' => Bool, 'access_hash' => long, 'slug' => 'string', 'document' => Document, 'settings' => WallPaperSettings];
```
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
```
{"_": "wallPaper", "id": int, "title": "string", "sizes": [PhotoSize], "color": int}
{"_": "wallPaper", "id": long, "creator": Bool, "default": Bool, "pattern": Bool, "dark": Bool, "access_hash": long, "slug": "string", "document": Document, "settings": WallPaperSettings}
```
Or, if you're into Lua:
```lua
wallPaper={_='wallPaper', id=int, title='string', sizes={PhotoSize}, color=int}
wallPaper={_='wallPaper', id=long, creator=Bool, default=Bool, pattern=Bool, dark=Bool, access_hash=long, slug='string', document=Document, settings=WallPaperSettings}
```

View File

@ -0,0 +1,45 @@
---
title: wallPaperSettings
description: wallPaperSettings attributes, type and example
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: wallPaperSettings
[Back to constructors index](index.md)
### Attributes:
| Name | Type | Required |
|----------|---------------|----------|
|blur|[Bool](../types/Bool.md) | Optional|
|motion|[Bool](../types/Bool.md) | Optional|
|background\_color|[int](../types/int.md) | Optional|
|intensity|[int](../types/int.md) | Optional|
### Type: [WallPaperSettings](../types/WallPaperSettings.md)
### Example:
```php
$wallPaperSettings = ['_' => 'wallPaperSettings', 'blur' => Bool, 'motion' => Bool, 'background_color' => int, 'intensity' => int];
```
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
```
{"_": "wallPaperSettings", "blur": Bool, "motion": Bool, "background_color": int, "intensity": int}
```
Or, if you're into Lua:
```lua
wallPaperSettings={_='wallPaperSettings', blur=Bool, motion=Bool, background_color=int, intensity=int}
```

View File

@ -1,9 +1,9 @@
---
title: MadelineProto API documentation (layer 91)
description: MadelineProto API documentation (layer 91)
title: MadelineProto API documentation (layer 95)
description: MadelineProto API documentation (layer 95)
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# MadelineProto API documentation (layer 91)
# MadelineProto API documentation (layer 95)
[Back to main documentation](..)

View File

@ -0,0 +1,66 @@
---
title: account.getWallPaper
description: account.getWallPaper parameters, return type and example
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Method: account.getWallPaper
[Back to methods index](index.md)
### Parameters:
| Name | Type | Required |
|----------|---------------|----------|
|wallpaper|[InputWallPaper](../types/InputWallPaper.md) | Yes|
### Return type: [WallPaper](../types/WallPaper.md)
### Can bots use this method: **YES**
### MadelineProto Example:
```php
if (!file_exists('madeline.php')) {
copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php');
}
include 'madeline.php';
$MadelineProto = new \danog\MadelineProto\API('session.madeline');
$MadelineProto->start();
$WallPaper = $MadelineProto->account->getWallPaper(['wallpaper' => InputWallPaper, ]);
```
### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto):
### As a bot:
POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline`
Parameters:
* method - account.getWallPaper
* params - `{"wallpaper": InputWallPaper, }`
### As a user:
POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/account.getWallPaper`
Parameters:
wallpaper - Json encoded InputWallPaper
Or, if you're into Lua:
```lua
WallPaper = account.getWallPaper({wallpaper=InputWallPaper, })
```

View File

@ -9,9 +9,14 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
Returns a list of available wallpapers.
### Parameters:
| Name | Type | Description | Required |
|----------|---------------|-------------|----------|
|hash|Array of [int](../types/int.md) | | Optional|
### Return type: [Vector\_of\_WallPaper](../types/WallPaper.md)
### Return type: [account\_WallPapers](../types/account_WallPapers.md)
### Can bots use this method: **NO**
@ -28,7 +33,7 @@ include 'madeline.php';
$MadelineProto = new \danog\MadelineProto\API('session.madeline');
$MadelineProto->start();
$Vector_of_WallPaper = $MadelineProto->account->getWallPapers();
$account_WallPapers = $MadelineProto->account->getWallPapers(['hash' => [int, int], ]);
```
### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto):
@ -41,12 +46,14 @@ POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/account.getWallPapers`
Parameters:
hash - Json encoded array of int
Or, if you're into Lua:
```lua
Vector_of_WallPaper = account.getWallPapers({})
account_WallPapers = account.getWallPapers({hash={int}, })
```

View File

@ -0,0 +1,69 @@
---
title: account.installWallPaper
description: account.installWallPaper parameters, return type and example
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Method: account.installWallPaper
[Back to methods index](index.md)
### Parameters:
| Name | Type | Required |
|----------|---------------|----------|
|wallpaper|[InputWallPaper](../types/InputWallPaper.md) | Yes|
|settings|[WallPaperSettings](../types/WallPaperSettings.md) | Yes|
### Return type: [Bool](../types/Bool.md)
### Can bots use this method: **YES**
### MadelineProto Example:
```php
if (!file_exists('madeline.php')) {
copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php');
}
include 'madeline.php';
$MadelineProto = new \danog\MadelineProto\API('session.madeline');
$MadelineProto->start();
$Bool = $MadelineProto->account->installWallPaper(['wallpaper' => InputWallPaper, 'settings' => WallPaperSettings, ]);
```
### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto):
### As a bot:
POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline`
Parameters:
* method - account.installWallPaper
* params - `{"wallpaper": InputWallPaper, "settings": WallPaperSettings, }`
### As a user:
POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/account.installWallPaper`
Parameters:
wallpaper - Json encoded InputWallPaper
settings - Json encoded WallPaperSettings
Or, if you're into Lua:
```lua
Bool = account.installWallPaper({wallpaper=InputWallPaper, settings=WallPaperSettings, })
```

View File

@ -0,0 +1,59 @@
---
title: account.resetWallPapers
description: account.resetWallPapers parameters, return type and example
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Method: account.resetWallPapers
[Back to methods index](index.md)
### Return type: [Bool](../types/Bool.md)
### Can bots use this method: **YES**
### MadelineProto Example:
```php
if (!file_exists('madeline.php')) {
copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php');
}
include 'madeline.php';
$MadelineProto = new \danog\MadelineProto\API('session.madeline');
$MadelineProto->start();
$Bool = $MadelineProto->account->resetWallPapers();
```
### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto):
### As a bot:
POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline`
Parameters:
* method - account.resetWallPapers
* params - `{}`
### As a user:
POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/account.resetWallPapers`
Parameters:
Or, if you're into Lua:
```lua
Bool = account.resetWallPapers({})
```

View File

@ -0,0 +1,72 @@
---
title: account.saveWallPaper
description: account.saveWallPaper parameters, return type and example
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Method: account.saveWallPaper
[Back to methods index](index.md)
### Parameters:
| Name | Type | Required |
|----------|---------------|----------|
|wallpaper|[InputWallPaper](../types/InputWallPaper.md) | Yes|
|unsave|[Bool](../types/Bool.md) | Yes|
|settings|[WallPaperSettings](../types/WallPaperSettings.md) | Yes|
### Return type: [Bool](../types/Bool.md)
### Can bots use this method: **YES**
### MadelineProto Example:
```php
if (!file_exists('madeline.php')) {
copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php');
}
include 'madeline.php';
$MadelineProto = new \danog\MadelineProto\API('session.madeline');
$MadelineProto->start();
$Bool = $MadelineProto->account->saveWallPaper(['wallpaper' => InputWallPaper, 'unsave' => Bool, 'settings' => WallPaperSettings, ]);
```
### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto):
### As a bot:
POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline`
Parameters:
* method - account.saveWallPaper
* params - `{"wallpaper": InputWallPaper, "unsave": Bool, "settings": WallPaperSettings, }`
### As a user:
POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/account.saveWallPaper`
Parameters:
wallpaper - Json encoded InputWallPaper
unsave - Json encoded Bool
settings - Json encoded WallPaperSettings
Or, if you're into Lua:
```lua
Bool = account.saveWallPaper({wallpaper=InputWallPaper, unsave=Bool, settings=WallPaperSettings, })
```

View File

@ -13,9 +13,8 @@ Change the phone number
| Name | Type | Description | Required |
|----------|---------------|-------------|----------|
|allow\_flashcall|[Bool](../types/Bool.md) | Can the code be sent using a flash call instead of an SMS? | Optional|
|phone\_number|[string](../types/string.md) | New phone number | Yes|
|current\_number|[Bool](../types/Bool.md) | Current phone number | Optional|
|settings|[CodeSettings](../types/CodeSettings.md) | | Yes|
### Return type: [auth\_SentCode](../types/auth_SentCode.md)
@ -35,7 +34,7 @@ include 'madeline.php';
$MadelineProto = new \danog\MadelineProto\API('session.madeline');
$MadelineProto->start();
$auth_SentCode = $MadelineProto->account->sendChangePhoneCode(['allow_flashcall' => Bool, 'phone_number' => 'string', 'current_number' => Bool, ]);
$auth_SentCode = $MadelineProto->account->sendChangePhoneCode(['phone_number' => 'string', 'settings' => CodeSettings, ]);
```
### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto):
@ -48,11 +47,9 @@ POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/account.sendChangePhoneCode`
Parameters:
allow_flashcall - Json encoded Bool
phone_number - Json encoded string
current_number - Json encoded Bool
settings - Json encoded CodeSettings
@ -60,7 +57,7 @@ current_number - Json encoded Bool
Or, if you're into Lua:
```lua
auth_SentCode = account.sendChangePhoneCode({allow_flashcall=Bool, phone_number='string', current_number=Bool, })
auth_SentCode = account.sendChangePhoneCode({phone_number='string', settings=CodeSettings, })
```
### Errors this method can return:

View File

@ -13,9 +13,8 @@ Send confirmation phone code
| Name | Type | Description | Required |
|----------|---------------|-------------|----------|
|allow\_flashcall|[Bool](../types/Bool.md) | Can telegram call you instead of sending an SMS? | Optional|
|hash|[string](../types/string.md) | The hash | Yes|
|current\_number|[Bool](../types/Bool.md) | The current phone number | Optional|
|settings|[CodeSettings](../types/CodeSettings.md) | | Yes|
### Return type: [auth\_SentCode](../types/auth_SentCode.md)
@ -35,7 +34,7 @@ include 'madeline.php';
$MadelineProto = new \danog\MadelineProto\API('session.madeline');
$MadelineProto->start();
$auth_SentCode = $MadelineProto->account->sendConfirmPhoneCode(['allow_flashcall' => Bool, 'hash' => 'string', 'current_number' => Bool, ]);
$auth_SentCode = $MadelineProto->account->sendConfirmPhoneCode(['hash' => 'string', 'settings' => CodeSettings, ]);
```
### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto):
@ -48,11 +47,9 @@ POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/account.sendConfirmPhoneCode`
Parameters:
allow_flashcall - Json encoded Bool
hash - Json encoded string
current_number - Json encoded Bool
settings - Json encoded CodeSettings
@ -60,7 +57,7 @@ current_number - Json encoded Bool
Or, if you're into Lua:
```lua
auth_SentCode = account.sendConfirmPhoneCode({allow_flashcall=Bool, hash='string', current_number=Bool, })
auth_SentCode = account.sendConfirmPhoneCode({hash='string', settings=CodeSettings, })
```
### Errors this method can return:

View File

@ -13,9 +13,8 @@ Send phone verification code
| Name | Type | Description | Required |
|----------|---------------|-------------|----------|
|allow\_flashcall|[Bool](../types/Bool.md) | Allow phone calls? | Optional|
|phone\_number|[string](../types/string.md) | The phone number | Yes|
|current\_number|[Bool](../types/Bool.md) | Is this the current number? | Optional|
|settings|[CodeSettings](../types/CodeSettings.md) | | Yes|
### Return type: [auth\_SentCode](../types/auth_SentCode.md)
@ -35,7 +34,7 @@ include 'madeline.php';
$MadelineProto = new \danog\MadelineProto\API('session.madeline');
$MadelineProto->start();
$auth_SentCode = $MadelineProto->account->sendVerifyPhoneCode(['allow_flashcall' => Bool, 'phone_number' => 'string', 'current_number' => Bool, ]);
$auth_SentCode = $MadelineProto->account->sendVerifyPhoneCode(['phone_number' => 'string', 'settings' => CodeSettings, ]);
```
### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto):
@ -47,7 +46,7 @@ POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline`
Parameters:
* method - account.sendVerifyPhoneCode
* params - `{"allow_flashcall": Bool, "phone_number": "string", "current_number": Bool, }`
* params - `{"phone_number": "string", "settings": CodeSettings, }`
@ -57,11 +56,9 @@ POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/account.sendVerifyPhoneCode`
Parameters:
allow_flashcall - Json encoded Bool
phone_number - Json encoded string
current_number - Json encoded Bool
settings - Json encoded CodeSettings
@ -69,6 +66,6 @@ current_number - Json encoded Bool
Or, if you're into Lua:
```lua
auth_SentCode = account.sendVerifyPhoneCode({allow_flashcall=Bool, phone_number='string', current_number=Bool, })
auth_SentCode = account.sendVerifyPhoneCode({phone_number='string', settings=CodeSettings, })
```

View File

@ -0,0 +1,72 @@
---
title: account.uploadWallPaper
description: account.uploadWallPaper parameters, return type and example
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Method: account.uploadWallPaper
[Back to methods index](index.md)
### Parameters:
| Name | Type | Required |
|----------|---------------|----------|
|file|[File path or InputFile](../types/InputFile.md) | Yes|
|mime\_type|[string](../types/string.md) | Yes|
|settings|[WallPaperSettings](../types/WallPaperSettings.md) | Yes|
### Return type: [WallPaper](../types/WallPaper.md)
### Can bots use this method: **YES**
### MadelineProto Example:
```php
if (!file_exists('madeline.php')) {
copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php');
}
include 'madeline.php';
$MadelineProto = new \danog\MadelineProto\API('session.madeline');
$MadelineProto->start();
$WallPaper = $MadelineProto->account->uploadWallPaper(['file' => InputFile, 'mime_type' => 'string', 'settings' => WallPaperSettings, ]);
```
### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto):
### As a bot:
POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline`
Parameters:
* method - account.uploadWallPaper
* params - `{"file": InputFile, "mime_type": "string", "settings": WallPaperSettings, }`
### As a user:
POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/account.uploadWallPaper`
Parameters:
file - Json encoded InputFile
mime_type - Json encoded string
settings - Json encoded WallPaperSettings
Or, if you're into Lua:
```lua
WallPaper = account.uploadWallPaper({file=InputFile, mime_type='string', settings=WallPaperSettings, })
```

View File

@ -78,12 +78,16 @@ $MadelineProto->[account->getSecureValue](account_getSecureValue.md)(\['types' =
$MadelineProto->[account->getTmpPassword](account_getTmpPassword.md)(\['password' => [InputCheckPasswordSRP](../types/InputCheckPasswordSRP.md), 'period' => [int](../types/int.md), \]) === [$account\_TmpPassword](../types/account_TmpPassword.md)<a name="account_getTmpPassword"></a>
$MadelineProto->[account->getWallPapers](account_getWallPapers.md)(\[\]) === [$Vector\_of\_WallPaper](../types/WallPaper.md)<a name="account_getWallPapers"></a>
$MadelineProto->[account->getWallPaper](account_getWallPaper.md)(\['wallpaper' => [InputWallPaper](../types/InputWallPaper.md), \]) === [$WallPaper](../types/WallPaper.md)<a name="account_getWallPaper"></a>
$MadelineProto->[account->getWallPapers](account_getWallPapers.md)(\['hash' => [int](../types/int.md), \]) === [$account\_WallPapers](../types/account_WallPapers.md)<a name="account_getWallPapers"></a>
$MadelineProto->[account->getWebAuthorizations](account_getWebAuthorizations.md)(\[\]) === [$account\_WebAuthorizations](../types/account_WebAuthorizations.md)<a name="account_getWebAuthorizations"></a>
$MadelineProto->[account->initTakeoutSession](account_initTakeoutSession.md)(\['contacts' => [Bool](../types/Bool.md), 'message_users' => [Bool](../types/Bool.md), 'message_chats' => [Bool](../types/Bool.md), 'message_megagroups' => [Bool](../types/Bool.md), 'message_channels' => [Bool](../types/Bool.md), 'files' => [Bool](../types/Bool.md), 'file_max_size' => [int](../types/int.md), \]) === [$account\_Takeout](../types/account_Takeout.md)<a name="account_initTakeoutSession"></a>
$MadelineProto->[account->installWallPaper](account_installWallPaper.md)(\['wallpaper' => [InputWallPaper](../types/InputWallPaper.md), 'settings' => [WallPaperSettings](../types/WallPaperSettings.md), \]) === [$Bool](../types/Bool.md)<a name="account_installWallPaper"></a>
$MadelineProto->[account->registerDevice](account_registerDevice.md)(\['token_type' => [int](../types/int.md), 'token' => [string](../types/string.md), 'app_sandbox' => [Bool](../types/Bool.md), 'secret' => [bytes](../types/bytes.md), 'other_uids' => \[[int](../types/int.md)\], \]) === [$Bool](../types/Bool.md)<a name="account_registerDevice"></a>
$MadelineProto->[account->reportPeer](account_reportPeer.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'reason' => [ReportReason](../types/ReportReason.md), \]) === [$Bool](../types/Bool.md)<a name="account_reportPeer"></a>
@ -94,19 +98,23 @@ $MadelineProto->[account->resetAuthorization](account_resetAuthorization.md)(\['
$MadelineProto->[account->resetNotifySettings](account_resetNotifySettings.md)(\[\]) === [$Bool](../types/Bool.md)<a name="account_resetNotifySettings"></a>
$MadelineProto->[account->resetWallPapers](account_resetWallPapers.md)(\[\]) === [$Bool](../types/Bool.md)<a name="account_resetWallPapers"></a>
$MadelineProto->[account->resetWebAuthorization](account_resetWebAuthorization.md)(\['hash' => [long](../types/long.md), \]) === [$Bool](../types/Bool.md)<a name="account_resetWebAuthorization"></a>
$MadelineProto->[account->resetWebAuthorizations](account_resetWebAuthorizations.md)(\[\]) === [$Bool](../types/Bool.md)<a name="account_resetWebAuthorizations"></a>
$MadelineProto->[account->saveSecureValue](account_saveSecureValue.md)(\['value' => [InputSecureValue](../types/InputSecureValue.md), 'secure_secret_id' => [long](../types/long.md), \]) === [$SecureValue](../types/SecureValue.md)<a name="account_saveSecureValue"></a>
$MadelineProto->[account->sendChangePhoneCode](account_sendChangePhoneCode.md)(\['allow_flashcall' => [Bool](../types/Bool.md), 'phone_number' => [string](../types/string.md), 'current_number' => [Bool](../types/Bool.md), \]) === [$auth\_SentCode](../types/auth_SentCode.md)<a name="account_sendChangePhoneCode"></a>
$MadelineProto->[account->saveWallPaper](account_saveWallPaper.md)(\['wallpaper' => [InputWallPaper](../types/InputWallPaper.md), 'unsave' => [Bool](../types/Bool.md), 'settings' => [WallPaperSettings](../types/WallPaperSettings.md), \]) === [$Bool](../types/Bool.md)<a name="account_saveWallPaper"></a>
$MadelineProto->[account->sendConfirmPhoneCode](account_sendConfirmPhoneCode.md)(\['allow_flashcall' => [Bool](../types/Bool.md), 'hash' => [string](../types/string.md), 'current_number' => [Bool](../types/Bool.md), \]) === [$auth\_SentCode](../types/auth_SentCode.md)<a name="account_sendConfirmPhoneCode"></a>
$MadelineProto->[account->sendChangePhoneCode](account_sendChangePhoneCode.md)(\['phone_number' => [string](../types/string.md), 'settings' => [CodeSettings](../types/CodeSettings.md), \]) === [$auth\_SentCode](../types/auth_SentCode.md)<a name="account_sendChangePhoneCode"></a>
$MadelineProto->[account->sendConfirmPhoneCode](account_sendConfirmPhoneCode.md)(\['hash' => [string](../types/string.md), 'settings' => [CodeSettings](../types/CodeSettings.md), \]) === [$auth\_SentCode](../types/auth_SentCode.md)<a name="account_sendConfirmPhoneCode"></a>
$MadelineProto->[account->sendVerifyEmailCode](account_sendVerifyEmailCode.md)(\['email' => [string](../types/string.md), \]) === [$account\_SentEmailCode](../types/account_SentEmailCode.md)<a name="account_sendVerifyEmailCode"></a>
$MadelineProto->[account->sendVerifyPhoneCode](account_sendVerifyPhoneCode.md)(\['allow_flashcall' => [Bool](../types/Bool.md), 'phone_number' => [string](../types/string.md), 'current_number' => [Bool](../types/Bool.md), \]) === [$auth\_SentCode](../types/auth_SentCode.md)<a name="account_sendVerifyPhoneCode"></a>
$MadelineProto->[account->sendVerifyPhoneCode](account_sendVerifyPhoneCode.md)(\['phone_number' => [string](../types/string.md), 'settings' => [CodeSettings](../types/CodeSettings.md), \]) === [$auth\_SentCode](../types/auth_SentCode.md)<a name="account_sendVerifyPhoneCode"></a>
$MadelineProto->[account->setAccountTTL](account_setAccountTTL.md)(\['ttl' => [AccountDaysTTL](../types/AccountDaysTTL.md), \]) === [$Bool](../types/Bool.md)<a name="account_setAccountTTL"></a>
@ -128,6 +136,8 @@ $MadelineProto->[account->updateStatus](account_updateStatus.md)(\['offline' =>
$MadelineProto->[account->updateUsername](account_updateUsername.md)(\['username' => [string](../types/string.md), \]) === [$User](../types/User.md)<a name="account_updateUsername"></a>
$MadelineProto->[account->uploadWallPaper](account_uploadWallPaper.md)(\['file' => [InputFile](../types/InputFile.md), 'mime_type' => [string](../types/string.md), 'settings' => [WallPaperSettings](../types/WallPaperSettings.md), \]) === [$WallPaper](../types/WallPaper.md)<a name="account_uploadWallPaper"></a>
$MadelineProto->[account->verifyEmail](account_verifyEmail.md)(\['email' => [string](../types/string.md), 'code' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md)<a name="account_verifyEmail"></a>
$MadelineProto->[account->verifyPhone](account_verifyPhone.md)(\['phone_number' => [string](../types/string.md), 'phone_code_hash' => [string](../types/string.md), 'phone_code' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md)<a name="account_verifyPhone"></a>
@ -158,7 +168,7 @@ $MadelineProto->[auth->resendCode](auth_resendCode.md)(\['phone_number' => [stri
$MadelineProto->[auth->resetAuthorizations](auth_resetAuthorizations.md)(\[\]) === [$Bool](../types/Bool.md)<a name="auth_resetAuthorizations"></a>
$MadelineProto->[auth->sendCode](auth_sendCode.md)(\['allow_flashcall' => [Bool](../types/Bool.md), 'phone_number' => [string](../types/string.md), 'current_number' => [Bool](../types/Bool.md), 'api_id' => [int](../types/int.md), 'api_hash' => [string](../types/string.md), \]) === [$auth\_SentCode](../types/auth_SentCode.md)<a name="auth_sendCode"></a>
$MadelineProto->[auth->sendCode](auth_sendCode.md)(\['phone_number' => [string](../types/string.md), 'api_id' => [int](../types/int.md), 'api_hash' => [string](../types/string.md), 'settings' => [CodeSettings](../types/CodeSettings.md), \]) === [$auth\_SentCode](../types/auth_SentCode.md)<a name="auth_sendCode"></a>
$MadelineProto->[auth->signIn](auth_signIn.md)(\['phone_number' => [string](../types/string.md), 'phone_code_hash' => [string](../types/string.md), 'phone_code' => [string](../types/string.md), \]) === [$auth\_Authorization](../types/auth_Authorization.md)<a name="auth_signIn"></a>
@ -184,18 +194,14 @@ $MadelineProto->[channels->deleteMessages](channels_deleteMessages.md)(\['channe
$MadelineProto->[channels->deleteUserHistory](channels_deleteUserHistory.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'user_id' => [InputUser](../types/InputUser.md), \]) === [$messages\_AffectedHistory](../types/messages_AffectedHistory.md)<a name="channels_deleteUserHistory"></a>
$MadelineProto->[channels->editAbout](channels_editAbout.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'about' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md)<a name="channels_editAbout"></a>
$MadelineProto->[channels->editAdmin](channels_editAdmin.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'user_id' => [InputUser](../types/InputUser.md), 'admin_rights' => [ChatAdminRights](../types/ChatAdminRights.md), \]) === [$Updates](../types/Updates.md)<a name="channels_editAdmin"></a>
$MadelineProto->[channels->editAdmin](channels_editAdmin.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'user_id' => [InputUser](../types/InputUser.md), 'admin_rights' => [ChannelAdminRights](../types/ChannelAdminRights.md), \]) === [$Updates](../types/Updates.md)<a name="channels_editAdmin"></a>
$MadelineProto->[channels->editBanned](channels_editBanned.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'user_id' => [InputUser](../types/InputUser.md), 'banned_rights' => [ChannelBannedRights](../types/ChannelBannedRights.md), \]) === [$Updates](../types/Updates.md)<a name="channels_editBanned"></a>
$MadelineProto->[channels->editBanned](channels_editBanned.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'user_id' => [InputUser](../types/InputUser.md), 'banned_rights' => [ChatBannedRights](../types/ChatBannedRights.md), \]) === [$Updates](../types/Updates.md)<a name="channels_editBanned"></a>
$MadelineProto->[channels->editPhoto](channels_editPhoto.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'photo' => [InputChatPhoto](../types/InputChatPhoto.md), \]) === [$Updates](../types/Updates.md)<a name="channels_editPhoto"></a>
$MadelineProto->[channels->editTitle](channels_editTitle.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'title' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md)<a name="channels_editTitle"></a>
$MadelineProto->[channels->exportInvite](channels_exportInvite.md)(\['channel' => [InputChannel](../types/InputChannel.md), \]) === [$ExportedChatInvite](../types/ExportedChatInvite.md)<a name="channels_exportInvite"></a>
$MadelineProto->[channels->exportMessageLink](channels_exportMessageLink.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'id' => [int](../types/int.md), 'grouped' => [Bool](../types/Bool.md), \]) === [$ExportedMessageLink](../types/ExportedMessageLink.md)<a name="channels_exportMessageLink"></a>
$MadelineProto->[channels->getAdminLog](channels_getAdminLog.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'q' => [string](../types/string.md), 'events_filter' => [ChannelAdminLogEventsFilter](../types/ChannelAdminLogEventsFilter.md), 'admins' => \[[InputUser](../types/InputUser.md)\], 'max_id' => [long](../types/long.md), 'min_id' => [long](../types/long.md), 'limit' => [int](../types/int.md), \]) === [$channels\_AdminLogResults](../types/channels_AdminLogResults.md)<a name="channels_getAdminLog"></a>
@ -228,8 +234,6 @@ $MadelineProto->[channels->reportSpam](channels_reportSpam.md)(\['channel' => [I
$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->togglePreHistoryHidden](channels_togglePreHistoryHidden.md)(\['channel' => [InputChannel](../types/InputChannel.md), 'enabled' => [Bool](../types/Bool.md), \]) === [$Updates](../types/Updates.md)<a name="channels_togglePreHistoryHidden"></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>
@ -374,8 +378,12 @@ $MadelineProto->[messages->deleteMessages](messages_deleteMessages.md)(\['revoke
$MadelineProto->[messages->discardEncryption](messages_discardEncryption.md)(\['chat_id' => [int](../types/int.md), \]) === [$Bool](../types/Bool.md)<a name="messages_discardEncryption"></a>
$MadelineProto->[messages->editChatAbout](messages_editChatAbout.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'about' => [string](../types/string.md), \]) === [$Bool](../types/Bool.md)<a name="messages_editChatAbout"></a>
$MadelineProto->[messages->editChatAdmin](messages_editChatAdmin.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'user_id' => [InputUser](../types/InputUser.md), 'is_admin' => [Bool](../types/Bool.md), \]) === [$Bool](../types/Bool.md)<a name="messages_editChatAdmin"></a>
$MadelineProto->[messages->editChatDefaultBannedRights](messages_editChatDefaultBannedRights.md)(\['peer' => [InputPeer](../types/InputPeer.md), 'banned_rights' => [ChatBannedRights](../types/ChatBannedRights.md), \]) === [$Updates](../types/Updates.md)<a name="messages_editChatDefaultBannedRights"></a>
$MadelineProto->[messages->editChatPhoto](messages_editChatPhoto.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'photo' => [InputChatPhoto](../types/InputChatPhoto.md), \]) === [$Updates](../types/Updates.md)<a name="messages_editChatPhoto"></a>
$MadelineProto->[messages->editChatTitle](messages_editChatTitle.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'title' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md)<a name="messages_editChatTitle"></a>
@ -384,7 +392,7 @@ $MadelineProto->[messages->editInlineBotMessage](messages_editInlineBotMessage.m
$MadelineProto->[messages->editMessage](messages_editMessage.md)(\['no_webpage' => [Bool](../types/Bool.md), 'peer' => [InputPeer](../types/InputPeer.md), 'id' => [int](../types/int.md), 'message' => [string](../types/string.md), 'media' => [InputMedia](../types/InputMedia.md), 'reply_markup' => [ReplyMarkup](../types/ReplyMarkup.md), 'entities' => \[[MessageEntity](../types/MessageEntity.md)\], \]) === [$Updates](../types/Updates.md)<a name="messages_editMessage"></a>
$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)(\['peer' => [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>
@ -552,8 +560,6 @@ $MadelineProto->[messages->setTyping](messages_setTyping.md)(\['peer' => [InputP
$MadelineProto->[messages->startBot](messages_startBot.md)(\['bot' => [InputUser](../types/InputUser.md), 'peer' => [InputPeer](../types/InputPeer.md), 'start_param' => [string](../types/string.md), \]) === [$Updates](../types/Updates.md)<a name="messages_startBot"></a>
$MadelineProto->[messages->toggleChatAdmins](messages_toggleChatAdmins.md)(\['chat_id' => [InputPeer](../types/InputPeer.md), 'enabled' => [Bool](../types/Bool.md), \]) === [$Updates](../types/Updates.md)<a name="messages_toggleChatAdmins"></a>
$MadelineProto->[messages->toggleDialogPin](messages_toggleDialogPin.md)(\['pinned' => [Bool](../types/Bool.md), 'peer' => [InputDialogPeer](../types/InputDialogPeer.md), \]) === [$Bool](../types/Bool.md)<a name="messages_toggleDialogPin"></a>
$MadelineProto->[messages->uninstallStickerSet](messages_uninstallStickerSet.md)(\['stickerset' => [InputStickerSet](../types/InputStickerSet.md), \]) === [$Bool](../types/Bool.md)<a name="messages_uninstallStickerSet"></a>

View File

@ -15,7 +15,7 @@ Edit admin permissions of a user in a channel/supergroup
|----------|---------------|-------------|----------|
|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | The channel | Optional|
|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | The user | Optional|
|admin\_rights|[ChannelAdminRights](../types/ChannelAdminRights.md) | The new admin rights | Yes|
|admin\_rights|[ChatAdminRights](../types/ChatAdminRights.md) | | Yes|
### Return type: [Updates](../types/Updates.md)
@ -35,7 +35,7 @@ include 'madeline.php';
$MadelineProto = new \danog\MadelineProto\API('session.madeline');
$MadelineProto->start();
$Updates = $MadelineProto->channels->editAdmin(['channel' => InputChannel, 'user_id' => InputUser, 'admin_rights' => ChannelAdminRights, ]);
$Updates = $MadelineProto->channels->editAdmin(['channel' => InputChannel, 'user_id' => InputUser, 'admin_rights' => ChatAdminRights, ]);
```
### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto):
@ -47,7 +47,7 @@ POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline`
Parameters:
* method - channels.editAdmin
* params - `{"channel": InputChannel, "user_id": InputUser, "admin_rights": ChannelAdminRights, }`
* params - `{"channel": InputChannel, "user_id": InputUser, "admin_rights": ChatAdminRights, }`
@ -61,7 +61,7 @@ channel - Json encoded InputChannel
user_id - Json encoded InputUser
admin_rights - Json encoded ChannelAdminRights
admin_rights - Json encoded ChatAdminRights
@ -69,7 +69,7 @@ admin_rights - Json encoded ChannelAdminRights
Or, if you're into Lua:
```lua
Updates = channels.editAdmin({channel=InputChannel, user_id=InputUser, admin_rights=ChannelAdminRights, })
Updates = channels.editAdmin({channel=InputChannel, user_id=InputUser, admin_rights=ChatAdminRights, })
```
### Errors this method can return:

View File

@ -15,7 +15,7 @@ Kick or ban a user from a channel/supergroup
|----------|---------------|-------------|----------|
|channel|[Username, chat ID, Update, Message or InputChannel](../types/InputChannel.md) | The channel/supergroup | Optional|
|user\_id|[Username, chat ID, Update, Message or InputUser](../types/InputUser.md) | The user to kick/ban | Optional|
|banned\_rights|[ChannelBannedRights](../types/ChannelBannedRights.md) | Banned/kicked permissions | Yes|
|banned\_rights|[ChatBannedRights](../types/ChatBannedRights.md) | | Yes|
### Return type: [Updates](../types/Updates.md)
@ -35,7 +35,7 @@ include 'madeline.php';
$MadelineProto = new \danog\MadelineProto\API('session.madeline');
$MadelineProto->start();
$Updates = $MadelineProto->channels->editBanned(['channel' => InputChannel, 'user_id' => InputUser, 'banned_rights' => ChannelBannedRights, ]);
$Updates = $MadelineProto->channels->editBanned(['channel' => InputChannel, 'user_id' => InputUser, 'banned_rights' => ChatBannedRights, ]);
```
### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto):
@ -47,7 +47,7 @@ POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline`
Parameters:
* method - channels.editBanned
* params - `{"channel": InputChannel, "user_id": InputUser, "banned_rights": ChannelBannedRights, }`
* params - `{"channel": InputChannel, "user_id": InputUser, "banned_rights": ChatBannedRights, }`
@ -61,7 +61,7 @@ channel - Json encoded InputChannel
user_id - Json encoded InputUser
banned_rights - Json encoded ChannelBannedRights
banned_rights - Json encoded ChatBannedRights
@ -69,7 +69,7 @@ banned_rights - Json encoded ChannelBannedRights
Or, if you're into Lua:
```lua
Updates = channels.editBanned({channel=InputChannel, user_id=InputUser, banned_rights=ChannelBannedRights, })
Updates = channels.editBanned({channel=InputChannel, user_id=InputUser, banned_rights=ChatBannedRights, })
```
### Errors this method can return:

View File

@ -46,8 +46,6 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
* <a href="channels_inviteToChannel.html" name="channels_inviteToChannel">Add users to channel/supergroup: channels.inviteToChannel</a>
* <a href="channels_toggleInvites.html" name="channels_toggleInvites">Allow or disallow any user to invite users to this channel/supergroup: channels.toggleInvites</a>
* <a href="contacts_block.html" name="contacts_block">Block a user: contacts.block</a>
* <a href="account_getAuthorizationForm.html" name="account_getAuthorizationForm">Bots only: get telegram passport authorization form: account.getAuthorizationForm</a>
@ -152,8 +150,6 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
* <a href="messages_editChatAdmin.html" name="messages_editChatAdmin">Edit admin permissions: messages.editChatAdmin</a>
* <a href="channels_editAbout.html" name="channels_editAbout">Edit the about text of a channel/supergroup: channels.editAbout</a>
* <a href="messages_editChatPhoto.html" name="messages_editChatPhoto">Edit the photo of a normal chat (not supergroup): messages.editChatPhoto</a>
* <a href="channels_editPhoto.html" name="channels_editPhoto">Edit the photo of a supergroup/channel: channels.editPhoto</a>
@ -164,14 +160,10 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
* <a href="help_editUserInfo.html" name="help_editUserInfo">Edit user info: help.editUserInfo</a>
* <a href="messages_toggleChatAdmins.html" name="messages_toggleChatAdmins">Enable all users are admins in normal groups (not supergroups): messages.toggleChatAdmins</a>
* <a href="channels_togglePreHistoryHidden.html" name="channels_togglePreHistoryHidden">Enable or disable hidden history for new channel/supergroup users: channels.togglePreHistoryHidden</a>
* <a href="messages_exportChatInvite.html" name="messages_exportChatInvite">Export chat invite : messages.exportChatInvite</a>
* <a href="channels_exportInvite.html" name="channels_exportInvite">Export the invite link of a channel: channels.exportInvite</a>
* <a href="messages_searchStickerSets.html" name="messages_searchStickerSets">Find a sticker set: messages.searchStickerSets</a>
* <a href="account_finishTakeoutSession.html" name="account_finishTakeoutSession">Finish account exporting session: account.finishTakeoutSession</a>

View File

@ -0,0 +1,69 @@
---
title: messages.editChatAbout
description: messages.editChatAbout parameters, return type and example
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Method: messages.editChatAbout
[Back to methods index](index.md)
### Parameters:
| Name | Type | Required |
|----------|---------------|----------|
|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional|
|about|[string](../types/string.md) | Yes|
### Return type: [Bool](../types/Bool.md)
### Can bots use this method: **YES**
### MadelineProto Example:
```php
if (!file_exists('madeline.php')) {
copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php');
}
include 'madeline.php';
$MadelineProto = new \danog\MadelineProto\API('session.madeline');
$MadelineProto->start();
$Bool = $MadelineProto->messages->editChatAbout(['peer' => InputPeer, 'about' => 'string', ]);
```
### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto):
### As a bot:
POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline`
Parameters:
* method - messages.editChatAbout
* params - `{"peer": InputPeer, "about": "string", }`
### As a user:
POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/messages.editChatAbout`
Parameters:
peer - Json encoded InputPeer
about - Json encoded string
Or, if you're into Lua:
```lua
Bool = messages.editChatAbout({peer=InputPeer, about='string', })
```

View File

@ -0,0 +1,69 @@
---
title: messages.editChatDefaultBannedRights
description: messages.editChatDefaultBannedRights parameters, return type and example
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Method: messages.editChatDefaultBannedRights
[Back to methods index](index.md)
### Parameters:
| Name | Type | Required |
|----------|---------------|----------|
|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Optional|
|banned\_rights|[ChatBannedRights](../types/ChatBannedRights.md) | Yes|
### Return type: [Updates](../types/Updates.md)
### Can bots use this method: **YES**
### MadelineProto Example:
```php
if (!file_exists('madeline.php')) {
copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php');
}
include 'madeline.php';
$MadelineProto = new \danog\MadelineProto\API('session.madeline');
$MadelineProto->start();
$Updates = $MadelineProto->messages->editChatDefaultBannedRights(['peer' => InputPeer, 'banned_rights' => ChatBannedRights, ]);
```
### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto):
### As a bot:
POST/GET to `https://api.pwrtelegram.xyz/botTOKEN/madeline`
Parameters:
* method - messages.editChatDefaultBannedRights
* params - `{"peer": InputPeer, "banned_rights": ChatBannedRights, }`
### As a user:
POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/messages.editChatDefaultBannedRights`
Parameters:
peer - Json encoded InputPeer
banned_rights - Json encoded ChatBannedRights
Or, if you're into Lua:
```lua
Updates = messages.editChatDefaultBannedRights({peer=InputPeer, banned_rights=ChatBannedRights, })
```

View File

@ -13,7 +13,7 @@ Export chat invite
| Name | Type | Description | Required |
|----------|---------------|-------------|----------|
|chat\_id|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | The chat id | Optional|
|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | | Optional|
### Return type: [ExportedChatInvite](../types/ExportedChatInvite.md)
@ -33,7 +33,7 @@ include 'madeline.php';
$MadelineProto = new \danog\MadelineProto\API('session.madeline');
$MadelineProto->start();
$ExportedChatInvite = $MadelineProto->messages->exportChatInvite(['chat_id' => InputPeer, ]);
$ExportedChatInvite = $MadelineProto->messages->exportChatInvite(['peer' => InputPeer, ]);
```
### [PWRTelegram HTTP API](https://pwrtelegram.xyz) example (NOT FOR MadelineProto):
@ -46,7 +46,7 @@ POST/GET to `https://api.pwrtelegram.xyz/userTOKEN/messages.exportChatInvite`
Parameters:
chat_id - Json encoded InputPeer
peer - Json encoded InputPeer
@ -54,7 +54,7 @@ chat_id - Json encoded InputPeer
Or, if you're into Lua:
```lua
ExportedChatInvite = messages.exportChatInvite({chat_id=InputPeer, })
ExportedChatInvite = messages.exportChatInvite({peer=InputPeer, })
```
### Errors this method can return:

View File

@ -42,6 +42,10 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
[channelAdminLogEventActionTogglePreHistoryHidden](../constructors/channelAdminLogEventActionTogglePreHistoryHidden.md)
[channelAdminLogEventActionDefaultBannedRights](../constructors/channelAdminLogEventActionDefaultBannedRights.md)
[channelAdminLogEventActionStopPoll](../constructors/channelAdminLogEventActionStopPoll.md)
### Methods that return an object of this type (methods):

View File

@ -22,6 +22,8 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
[channelParticipantsSearch](../constructors/channelParticipantsSearch.md)
[channelParticipantsContacts](../constructors/channelParticipantsContacts.md)
### Methods that return an object of this type (methods):

View File

@ -0,0 +1,20 @@
---
title: ChatAdminRights
description: constructors and methods of type ChatAdminRights
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Type: ChatAdminRights
[Back to types index](index.md)
### Possible values (constructors):
[chatAdminRights](../constructors/chatAdminRights.md)
### Methods that return an object of this type (methods):

View File

@ -0,0 +1,20 @@
---
title: ChatBannedRights
description: constructors and methods of type ChatBannedRights
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Type: ChatBannedRights
[Back to types index](index.md)
### Possible values (constructors):
[chatBannedRights](../constructors/chatBannedRights.md)
### Methods that return an object of this type (methods):

View File

@ -0,0 +1,20 @@
---
title: CodeSettings
description: constructors and methods of type CodeSettings
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Type: CodeSettings
[Back to types index](index.md)
### Possible values (constructors):
[codeSettings](../constructors/codeSettings.md)
### Methods that return an object of this type (methods):

View File

@ -20,7 +20,5 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
[$MadelineProto->messages->exportChatInvite](../methods/messages_exportChatInvite.md)
[$MadelineProto->channels->exportInvite](../methods/channels_exportInvite.md)

View File

@ -0,0 +1,22 @@
---
title: InputWallPaper
description: constructors and methods of type InputWallPaper
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Type: InputWallPaper
[Back to types index](index.md)
### Possible values (constructors):
[inputWallPaper](../constructors/inputWallPaper.md)
[inputWallPaperSlug](../constructors/inputWallPaperSlug.md)
### Methods that return an object of this type (methods):

View File

@ -16,6 +16,8 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
[photoCachedSize](../constructors/photoCachedSize.md)
[photoStrippedSize](../constructors/photoStrippedSize.md)
### Methods that return an object of this type (methods):

View File

@ -76,8 +76,6 @@ Contains notifications about data changes
[updateChannelMessageViews](../constructors/updateChannelMessageViews.md)
[updateChatAdmins](../constructors/updateChatAdmins.md)
[updateChatParticipantAdmin](../constructors/updateChatParticipantAdmin.md)
[updateNewStickerSet](../constructors/updateNewStickerSet.md)
@ -150,6 +148,8 @@ Contains notifications about data changes
[updateMessagePoll](../constructors/updateMessagePoll.md)
[updateChatDefaultBannedRights](../constructors/updateChatDefaultBannedRights.md)
### Methods that return an object of this type (methods):

View File

@ -50,8 +50,6 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
[$MadelineProto->messages->startBot](../methods/messages_startBot.md)
[$MadelineProto->messages->toggleChatAdmins](../methods/messages_toggleChatAdmins.md)
[$MadelineProto->messages->migrateChat](../methods/messages_migrateChat.md)
[$MadelineProto->messages->sendInlineBotResult](../methods/messages_sendInlineBotResult.md)
@ -72,6 +70,8 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
[$MadelineProto->messages->getPollResults](../methods/messages_getPollResults.md)
[$MadelineProto->messages->editChatDefaultBannedRights](../methods/messages_editChatDefaultBannedRights.md)
[$MadelineProto->help->getAppChangelog](../methods/help_getAppChangelog.md)
[$MadelineProto->channels->createChannel](../methods/channels_createChannel.md)
@ -90,8 +90,6 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
[$MadelineProto->channels->deleteChannel](../methods/channels_deleteChannel.md)
[$MadelineProto->channels->toggleInvites](../methods/channels_toggleInvites.md)
[$MadelineProto->channels->toggleSignatures](../methods/channels_toggleSignatures.md)
[$MadelineProto->channels->editBanned](../methods/channels_editBanned.md)

View File

@ -12,13 +12,13 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
[wallPaper](../constructors/wallPaper.md)
[wallPaperSolid](../constructors/wallPaperSolid.md)
### Methods that return an object of this type (methods):
[$MadelineProto->account->getWallPapers](../methods/account_getWallPapers.md)
[$MadelineProto->account->getWallPaper](../methods/account_getWallPaper.md)
[$MadelineProto->account->uploadWallPaper](../methods/account_uploadWallPaper.md)

View File

@ -0,0 +1,20 @@
---
title: WallPaperSettings
description: constructors and methods of type WallPaperSettings
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Type: WallPaperSettings
[Back to types index](index.md)
### Possible values (constructors):
[wallPaperSettings](../constructors/wallPaperSettings.md)
### Methods that return an object of this type (methods):

View File

@ -0,0 +1,24 @@
---
title: account_WallPapers
description: constructors and methods of type account_WallPapers
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Type: account\_WallPapers
[Back to types index](index.md)
### Possible values (constructors):
[account\_wallPapersNotModified](../constructors/account_wallPapersNotModified.md)
[account\_wallPapers](../constructors/account_wallPapers.md)
### Methods that return an object of this type (methods):
[$MadelineProto->account->getWallPapers](../methods/account_getWallPapers.md)

View File

@ -33,10 +33,6 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
[ChannelAdminLogEventsFilter](ChannelAdminLogEventsFilter.md)<a name="ChannelAdminLogEventsFilter"></a>
[ChannelAdminRights](ChannelAdminRights.md)<a name="ChannelAdminRights"></a>
[ChannelBannedRights](ChannelBannedRights.md)<a name="ChannelBannedRights"></a>
[ChannelMessagesFilter](ChannelMessagesFilter.md)<a name="ChannelMessagesFilter"></a>
[ChannelParticipant](ChannelParticipant.md)<a name="ChannelParticipant"></a>
@ -45,6 +41,10 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
[Chat](Chat.md)<a name="Chat"></a>
[ChatAdminRights](ChatAdminRights.md)<a name="ChatAdminRights"></a>
[ChatBannedRights](ChatBannedRights.md)<a name="ChatBannedRights"></a>
[ChatFull](ChatFull.md)<a name="ChatFull"></a>
[ChatInvite](ChatInvite.md)<a name="ChatInvite"></a>
@ -57,6 +57,8 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
[ChatPhoto](ChatPhoto.md)<a name="ChatPhoto"></a>
[CodeSettings](CodeSettings.md)<a name="CodeSettings"></a>
[Config](Config.md)<a name="Config"></a>
[Contact](Contact.md)<a name="Contact"></a>
@ -187,6 +189,8 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
[InputUser](InputUser.md)<a name="InputUser"></a>
[InputWallPaper](InputWallPaper.md)<a name="InputWallPaper"></a>
[InputWebDocument](InputWebDocument.md)<a name="InputWebDocument"></a>
[InputWebFileLocation](InputWebFileLocation.md)<a name="InputWebFileLocation"></a>
@ -359,6 +363,8 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
[WallPaper](WallPaper.md)<a name="WallPaper"></a>
[WallPaperSettings](WallPaperSettings.md)<a name="WallPaperSettings"></a>
[WebAuthorization](WebAuthorization.md)<a name="WebAuthorization"></a>
[WebDocument](WebDocument.md)<a name="WebDocument"></a>
@ -385,6 +391,8 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
[account\_TmpPassword](account_TmpPassword.md)<a name="account_TmpPassword"></a>
[account\_WallPapers](account_WallPapers.md)<a name="account_WallPapers"></a>
[account\_WebAuthorizations](account_WebAuthorizations.md)<a name="account_WebAuthorizations"></a>
[auth\_Authorization](auth_Authorization.md)<a name="auth_Authorization"></a>

View File

@ -7,7 +7,7 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
There are simplifications for many, if not all of, these methods.
A list of all of the methods that can be called with MadelineProto can be found here: [here (layer 91)](https://docs.madelineproto.xyz/API_docs/).
A list of all of the methods that can be called with MadelineProto can be found here: [here (layer 95)](https://docs.madelineproto.xyz/API_docs/).
* [FULL API Documentation with descriptions](https://docs.madelineproto.xyz/API_docs/methods/)
* [Peers](#peers)

View File

@ -0,0 +1,15 @@
---
title: MadelineProto API documentation (layer v91)
description: MadelineProto API documentation (layer v91)
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# MadelineProto API documentation (layer v91)
[Back to main documentation](..)
[Methods](methods/)
[Constructors](constructors/)
[Types](types/)

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,46 @@
---
title: accessPointRule
description: Access point rule
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: accessPointRule
[Back to constructors index](index.md)
Access point rule
### Attributes:
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|phone\_prefix\_rules|[string](../types/string.md) | Yes|Phone prefix rules|
|dc\_id|[int](../types/int.md) | Yes|DC ID|
|ips|Array of [IpPort](../types/IpPort.md) | Yes|Ips|
### Type: [AccessPointRule](../types/AccessPointRule.md)
### Example:
```php
$accessPointRule = ['_' => 'accessPointRule', 'phone_prefix_rules' => 'string', 'dc_id' => int, 'ips' => [IpPort, IpPort]];
```
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
```
{"_": "accessPointRule", "phone_prefix_rules": "string", "dc_id": int, "ips": [IpPort]}
```
Or, if you're into Lua:
```lua
accessPointRule={_='accessPointRule', phone_prefix_rules='string', dc_id=int, ips={IpPort}}
```

View File

@ -0,0 +1,44 @@
---
title: accountDaysTTL
description: Account TTL in days
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: accountDaysTTL
[Back to constructors index](index.md)
Account TTL in days
### Attributes:
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|days|[int](../types/int.md) | Yes|Days|
### Type: [AccountDaysTTL](../types/AccountDaysTTL.md)
### Example:
```php
$accountDaysTTL = ['_' => 'accountDaysTTL', 'days' => int];
```
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
```
{"_": "accountDaysTTL", "days": int}
```
Or, if you're into Lua:
```lua
accountDaysTTL={_='accountDaysTTL', days=int}
```

View File

@ -0,0 +1,48 @@
---
title: account.authorizationForm
description: Telegram passport authorization form
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: account.authorizationForm
[Back to constructors index](index.md)
Telegram passport authorization form
### Attributes:
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|required\_types|Array of [SecureRequiredType](../types/SecureRequiredType.md) | Yes|Required types|
|values|Array of [SecureValue](../types/SecureValue.md) | Yes|Values|
|errors|Array of [SecureValueError](../types/SecureValueError.md) | Yes|Errors|
|users|Array of [User](../types/User.md) | Yes|Users|
|privacy\_policy\_url|[string](../types/string.md) | Optional|Privacy policy URL|
### Type: [account\_AuthorizationForm](../types/account_AuthorizationForm.md)
### Example:
```php
$account_authorizationForm = ['_' => 'account.authorizationForm', 'required_types' => [SecureRequiredType, SecureRequiredType], 'values' => [SecureValue, SecureValue], 'errors' => [SecureValueError, SecureValueError], 'users' => [User, User], 'privacy_policy_url' => 'string'];
```
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
```
{"_": "account.authorizationForm", "required_types": [SecureRequiredType], "values": [SecureValue], "errors": [SecureValueError], "users": [User], "privacy_policy_url": "string"}
```
Or, if you're into Lua:
```lua
account_authorizationForm={_='account.authorizationForm', required_types={SecureRequiredType}, values={SecureValue}, errors={SecureValueError}, users={User}, privacy_policy_url='string'}
```

View File

@ -0,0 +1,44 @@
---
title: account.authorizations
description: Authorized clients for this account
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: account.authorizations
[Back to constructors index](index.md)
Authorized clients for this account
### Attributes:
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|authorizations|Array of [Authorization](../types/Authorization.md) | Yes|Authorizations|
### Type: [account\_Authorizations](../types/account_Authorizations.md)
### Example:
```php
$account_authorizations = ['_' => 'account.authorizations', 'authorizations' => [Authorization, Authorization]];
```
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
```
{"_": "account.authorizations", "authorizations": [Authorization]}
```
Or, if you're into Lua:
```lua
account_authorizations={_='account.authorizations', authorizations={Authorization}}
```

View File

@ -0,0 +1,54 @@
---
title: account.password
description: Password
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: account.password
[Back to constructors index](index.md)
Password
### Attributes:
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|has\_recovery|[Bool](../types/Bool.md) | Optional|Has recovery?|
|has\_secure\_values|[Bool](../types/Bool.md) | Optional|Has secure values?|
|has\_password|[Bool](../types/Bool.md) | Optional|Has password?|
|current\_algo|[PasswordKdfAlgo](../types/PasswordKdfAlgo.md) | Optional|Current algo|
|srp\_B|[bytes](../types/bytes.md) | Optional|Srp b|
|srp\_id|[long](../types/long.md) | Optional|Srp ID|
|hint|[string](../types/string.md) | Optional|Hint|
|email\_unconfirmed\_pattern|[string](../types/string.md) | Optional|Email unconfirmed pattern|
|new\_algo|[PasswordKdfAlgo](../types/PasswordKdfAlgo.md) | Yes|New algo|
|new\_secure\_algo|[SecurePasswordKdfAlgo](../types/SecurePasswordKdfAlgo.md) | Yes|New secure algo|
|secure\_random|[bytes](../types/bytes.md) | Yes|Secure random|
### Type: [account\_Password](../types/account_Password.md)
### Example:
```php
$account_password = ['_' => 'account.password', 'has_recovery' => Bool, 'has_secure_values' => Bool, 'has_password' => Bool, 'current_algo' => PasswordKdfAlgo, 'srp_B' => 'bytes', 'srp_id' => long, 'hint' => 'string', 'email_unconfirmed_pattern' => 'string', 'new_algo' => PasswordKdfAlgo, 'new_secure_algo' => SecurePasswordKdfAlgo, 'secure_random' => 'bytes'];
```
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
```
{"_": "account.password", "has_recovery": Bool, "has_secure_values": Bool, "has_password": Bool, "current_algo": PasswordKdfAlgo, "srp_B": {"_": "bytes", "bytes":"base64 encoded bytes"}, "srp_id": long, "hint": "string", "email_unconfirmed_pattern": "string", "new_algo": PasswordKdfAlgo, "new_secure_algo": SecurePasswordKdfAlgo, "secure_random": {"_": "bytes", "bytes":"base64 encoded bytes"}}
```
Or, if you're into Lua:
```lua
account_password={_='account.password', has_recovery=Bool, has_secure_values=Bool, has_password=Bool, current_algo=PasswordKdfAlgo, srp_B='bytes', srp_id=long, hint='string', email_unconfirmed_pattern='string', new_algo=PasswordKdfAlgo, new_secure_algo=SecurePasswordKdfAlgo, secure_random='bytes'}
```

View File

@ -0,0 +1,48 @@
---
title: account.passwordInputSettings
description: 2FA password settings
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: account.passwordInputSettings
[Back to constructors index](index.md)
2FA password settings
### Attributes:
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|new\_algo|[PasswordKdfAlgo](../types/PasswordKdfAlgo.md) | Optional|New algo|
|new\_password\_hash|[bytes](../types/bytes.md) | Optional|`hash('sha256', $new_salt.$new_password.$new_salt, true)`|
|hint|[string](../types/string.md) | Optional|Hint|
|email|[string](../types/string.md) | Optional|Email|
|new\_secure\_settings|[SecureSecretSettings](../types/SecureSecretSettings.md) | Optional|New secure settings|
### Type: [account\_PasswordInputSettings](../types/account_PasswordInputSettings.md)
### Example:
```php
$account_passwordInputSettings = ['_' => 'account.passwordInputSettings', 'new_algo' => PasswordKdfAlgo, 'new_password_hash' => 'bytes', 'hint' => 'string', 'email' => 'string', 'new_secure_settings' => SecureSecretSettings];
```
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
```
{"_": "account.passwordInputSettings", "new_algo": PasswordKdfAlgo, "new_password_hash": {"_": "bytes", "bytes":"base64 encoded bytes"}, "hint": "string", "email": "string", "new_secure_settings": SecureSecretSettings}
```
Or, if you're into Lua:
```lua
account_passwordInputSettings={_='account.passwordInputSettings', new_algo=PasswordKdfAlgo, new_password_hash='bytes', hint='string', email='string', new_secure_settings=SecureSecretSettings}
```

View File

@ -0,0 +1,45 @@
---
title: account.passwordSettings
description: Password settings
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: account.passwordSettings
[Back to constructors index](index.md)
Password settings
### Attributes:
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|email|[string](../types/string.md) | Optional|Email|
|secure\_settings|[SecureSecretSettings](../types/SecureSecretSettings.md) | Optional|Secure settings|
### Type: [account\_PasswordSettings](../types/account_PasswordSettings.md)
### Example:
```php
$account_passwordSettings = ['_' => 'account.passwordSettings', 'email' => 'string', 'secure_settings' => SecureSecretSettings];
```
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
```
{"_": "account.passwordSettings", "email": "string", "secure_settings": SecureSecretSettings}
```
Or, if you're into Lua:
```lua
account_passwordSettings={_='account.passwordSettings', email='string', secure_settings=SecureSecretSettings}
```

View File

@ -0,0 +1,45 @@
---
title: account.privacyRules
description: Privacy rules
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: account.privacyRules
[Back to constructors index](index.md)
Privacy rules
### Attributes:
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|rules|Array of [PrivacyRule](../types/PrivacyRule.md) | Yes|Rules|
|users|Array of [User](../types/User.md) | Yes|Users|
### Type: [account\_PrivacyRules](../types/account_PrivacyRules.md)
### Example:
```php
$account_privacyRules = ['_' => 'account.privacyRules', 'rules' => [PrivacyRule, PrivacyRule], 'users' => [User, User]];
```
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
```
{"_": "account.privacyRules", "rules": [PrivacyRule], "users": [User]}
```
Or, if you're into Lua:
```lua
account_privacyRules={_='account.privacyRules', rules={PrivacyRule}, users={User}}
```

View File

@ -0,0 +1,45 @@
---
title: account.sentEmailCode
description: Sent email code
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: account.sentEmailCode
[Back to constructors index](index.md)
Sent email code
### Attributes:
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|email\_pattern|[string](../types/string.md) | Yes|Email pattern|
|length|[int](../types/int.md) | Yes|Length|
### Type: [account\_SentEmailCode](../types/account_SentEmailCode.md)
### Example:
```php
$account_sentEmailCode = ['_' => 'account.sentEmailCode', 'email_pattern' => 'string', 'length' => int];
```
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
```
{"_": "account.sentEmailCode", "email_pattern": "string", "length": int}
```
Or, if you're into Lua:
```lua
account_sentEmailCode={_='account.sentEmailCode', email_pattern='string', length=int}
```

View File

@ -0,0 +1,44 @@
---
title: account.takeout
description: Takeout
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: account.takeout
[Back to constructors index](index.md)
Takeout
### Attributes:
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|id|[long](../types/long.md) | Yes|ID|
### Type: [account\_Takeout](../types/account_Takeout.md)
### Example:
```php
$account_takeout = ['_' => 'account.takeout', 'id' => long];
```
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
```
{"_": "account.takeout", "id": long}
```
Or, if you're into Lua:
```lua
account_takeout={_='account.takeout', id=long}
```

View File

@ -0,0 +1,45 @@
---
title: account.tmpPassword
description: Tmp password
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: account.tmpPassword
[Back to constructors index](index.md)
Tmp password
### Attributes:
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|tmp\_password|[bytes](../types/bytes.md) | Yes|Tmp password|
|valid\_until|[int](../types/int.md) | Yes|Valid until|
### Type: [account\_TmpPassword](../types/account_TmpPassword.md)
### Example:
```php
$account_tmpPassword = ['_' => 'account.tmpPassword', 'tmp_password' => 'bytes', 'valid_until' => int];
```
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
```
{"_": "account.tmpPassword", "tmp_password": {"_": "bytes", "bytes":"base64 encoded bytes"}, "valid_until": int}
```
Or, if you're into Lua:
```lua
account_tmpPassword={_='account.tmpPassword', tmp_password='bytes', valid_until=int}
```

View File

@ -0,0 +1,45 @@
---
title: account.webAuthorizations
description: Telegram login authorizations
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: account.webAuthorizations
[Back to constructors index](index.md)
Telegram login authorizations
### Attributes:
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|authorizations|Array of [WebAuthorization](../types/WebAuthorization.md) | Yes|Authorizations|
|users|Array of [User](../types/User.md) | Yes|Users|
### Type: [account\_WebAuthorizations](../types/account_WebAuthorizations.md)
### Example:
```php
$account_webAuthorizations = ['_' => 'account.webAuthorizations', 'authorizations' => [WebAuthorization, WebAuthorization], 'users' => [User, User]];
```
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
```
{"_": "account.webAuthorizations", "authorizations": [WebAuthorization], "users": [User]}
```
Or, if you're into Lua:
```lua
account_webAuthorizations={_='account.webAuthorizations', authorizations={WebAuthorization}, users={User}}
```

View File

@ -0,0 +1,45 @@
---
title: auth.authorization
description: Authorization
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: auth.authorization
[Back to constructors index](index.md)
Authorization
### Attributes:
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|tmp\_sessions|[int](../types/int.md) | Optional|Temporary sessions|
|user|[User](../types/User.md) | Optional|User|
### Type: [auth\_Authorization](../types/auth_Authorization.md)
### Example:
```php
$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:
```lua
auth_authorization={_='auth.authorization', tmp_sessions=int, user=User}
```

View File

@ -0,0 +1,44 @@
---
title: auth.checkedPhone
description: Checked phone
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: auth.checkedPhone
[Back to constructors index](index.md)
Checked phone
### Attributes:
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|phone\_registered|[Bool](../types/Bool.md) | Yes|Phone registered?|
### Type: [auth\_CheckedPhone](../types/auth_CheckedPhone.md)
### Example:
```php
$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:
```lua
auth_checkedPhone={_='auth.checkedPhone', phone_registered=Bool}
```

View File

@ -0,0 +1,39 @@
---
title: auth.codeTypeCall
description: Auth code type: call
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: auth.codeTypeCall
[Back to constructors index](index.md)
Auth code type: call
### Type: [auth\_CodeType](../types/auth_CodeType.md)
### Example:
```php
$auth_codeTypeCall = ['_' => 'auth.codeTypeCall'];
```
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
```
{"_": "auth.codeTypeCall"}
```
Or, if you're into Lua:
```lua
auth_codeTypeCall={_='auth.codeTypeCall'}
```

View File

@ -0,0 +1,39 @@
---
title: auth.codeTypeFlashCall
description: Auth code type: flash call
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: auth.codeTypeFlashCall
[Back to constructors index](index.md)
Auth code type: flash call
### Type: [auth\_CodeType](../types/auth_CodeType.md)
### Example:
```php
$auth_codeTypeFlashCall = ['_' => 'auth.codeTypeFlashCall'];
```
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
```
{"_": "auth.codeTypeFlashCall"}
```
Or, if you're into Lua:
```lua
auth_codeTypeFlashCall={_='auth.codeTypeFlashCall'}
```

View File

@ -0,0 +1,39 @@
---
title: auth.codeTypeSms
description: Auth code type: SMS
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: auth.codeTypeSms
[Back to constructors index](index.md)
Auth code type: SMS
### Type: [auth\_CodeType](../types/auth_CodeType.md)
### Example:
```php
$auth_codeTypeSms = ['_' => 'auth.codeTypeSms'];
```
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
```
{"_": "auth.codeTypeSms"}
```
Or, if you're into Lua:
```lua
auth_codeTypeSms={_='auth.codeTypeSms'}
```

View File

@ -0,0 +1,45 @@
---
title: auth.exportedAuthorization
description: Exported authorization
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: auth.exportedAuthorization
[Back to constructors index](index.md)
Exported authorization
### Attributes:
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|id|[int](../types/int.md) | Yes|ID|
|bytes|[bytes](../types/bytes.md) | Yes|Bytes|
### Type: [auth\_ExportedAuthorization](../types/auth_ExportedAuthorization.md)
### Example:
```php
$auth_exportedAuthorization = ['_' => 'auth.exportedAuthorization', 'id' => int, 'bytes' => 'bytes'];
```
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
```
{"_": "auth.exportedAuthorization", "id": int, "bytes": {"_": "bytes", "bytes":"base64 encoded bytes"}}
```
Or, if you're into Lua:
```lua
auth_exportedAuthorization={_='auth.exportedAuthorization', id=int, bytes='bytes'}
```

View File

@ -0,0 +1,44 @@
---
title: auth.passwordRecovery
description: Password recovery
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: auth.passwordRecovery
[Back to constructors index](index.md)
Password recovery
### Attributes:
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|email\_pattern|[string](../types/string.md) | Yes|Email pattern|
### Type: [auth\_PasswordRecovery](../types/auth_PasswordRecovery.md)
### Example:
```php
$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:
```lua
auth_passwordRecovery={_='auth.passwordRecovery', email_pattern='string'}
```

View File

@ -0,0 +1,49 @@
---
title: auth.sentCode
description: Sent code
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: auth.sentCode
[Back to constructors index](index.md)
Sent code
### Attributes:
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|phone\_registered|[Bool](../types/Bool.md) | Optional|Phone registered?|
|type|[auth\_SentCodeType](../types/auth_SentCodeType.md) | Yes|Type|
|phone\_code\_hash|[string](../types/string.md) | Yes|Phone code hash|
|next\_type|[auth\_CodeType](../types/auth_CodeType.md) | Optional|Next type|
|timeout|[int](../types/int.md) | Optional|Timeout|
|terms\_of\_service|[help\_TermsOfService](../types/help_TermsOfService.md) | Optional|Terms of service|
### Type: [auth\_SentCode](../types/auth_SentCode.md)
### Example:
```php
$auth_sentCode = ['_' => 'auth.sentCode', 'phone_registered' => Bool, 'type' => auth_SentCodeType, 'phone_code_hash' => 'string', 'next_type' => auth_CodeType, 'timeout' => int, 'terms_of_service' => help_TermsOfService];
```
[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, "terms_of_service": help_TermsOfService}
```
Or, if you're into Lua:
```lua
auth_sentCode={_='auth.sentCode', phone_registered=Bool, type=auth_SentCodeType, phone_code_hash='string', next_type=auth_CodeType, timeout=int, terms_of_service=help_TermsOfService}
```

View File

@ -0,0 +1,44 @@
---
title: auth.sentCodeTypeApp
description: Sent code type app
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: auth.sentCodeTypeApp
[Back to constructors index](index.md)
Sent code type app
### Attributes:
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|length|[int](../types/int.md) | Yes|Length|
### Type: [auth\_SentCodeType](../types/auth_SentCodeType.md)
### Example:
```php
$auth_sentCodeTypeApp = ['_' => 'auth.sentCodeTypeApp', 'length' => int];
```
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
```
{"_": "auth.sentCodeTypeApp", "length": int}
```
Or, if you're into Lua:
```lua
auth_sentCodeTypeApp={_='auth.sentCodeTypeApp', length=int}
```

View File

@ -0,0 +1,44 @@
---
title: auth.sentCodeTypeCall
description: Sent code type call
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: auth.sentCodeTypeCall
[Back to constructors index](index.md)
Sent code type call
### Attributes:
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|length|[int](../types/int.md) | Yes|Length|
### Type: [auth\_SentCodeType](../types/auth_SentCodeType.md)
### Example:
```php
$auth_sentCodeTypeCall = ['_' => 'auth.sentCodeTypeCall', 'length' => int];
```
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
```
{"_": "auth.sentCodeTypeCall", "length": int}
```
Or, if you're into Lua:
```lua
auth_sentCodeTypeCall={_='auth.sentCodeTypeCall', length=int}
```

View File

@ -0,0 +1,44 @@
---
title: auth.sentCodeTypeFlashCall
description: Sent code type flash call
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: auth.sentCodeTypeFlashCall
[Back to constructors index](index.md)
Sent code type flash call
### Attributes:
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|pattern|[string](../types/string.md) | Yes|Pattern|
### Type: [auth\_SentCodeType](../types/auth_SentCodeType.md)
### Example:
```php
$auth_sentCodeTypeFlashCall = ['_' => 'auth.sentCodeTypeFlashCall', 'pattern' => 'string'];
```
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
```
{"_": "auth.sentCodeTypeFlashCall", "pattern": "string"}
```
Or, if you're into Lua:
```lua
auth_sentCodeTypeFlashCall={_='auth.sentCodeTypeFlashCall', pattern='string'}
```

View File

@ -0,0 +1,44 @@
---
title: auth.sentCodeTypeSms
description: Sent code type sms
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: auth.sentCodeTypeSms
[Back to constructors index](index.md)
Sent code type sms
### Attributes:
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|length|[int](../types/int.md) | Yes|Length|
### Type: [auth\_SentCodeType](../types/auth_SentCodeType.md)
### Example:
```php
$auth_sentCodeTypeSms = ['_' => 'auth.sentCodeTypeSms', 'length' => int];
```
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
```
{"_": "auth.sentCodeTypeSms", "length": int}
```
Or, if you're into Lua:
```lua
auth_sentCodeTypeSms={_='auth.sentCodeTypeSms', length=int}
```

View File

@ -0,0 +1,58 @@
---
title: authorization
description: Authorization
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: authorization
[Back to constructors index](index.md)
Authorization
### Attributes:
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|current|[Bool](../types/Bool.md) | Optional|Current?|
|official\_app|[Bool](../types/Bool.md) | Optional|Official app?|
|password\_pending|[Bool](../types/Bool.md) | Optional|Password pending?|
|hash|[long](../types/long.md) | Yes|Hash|
|device\_model|[string](../types/string.md) | Yes|Device model|
|platform|[string](../types/string.md) | Yes|Platform|
|system\_version|[string](../types/string.md) | Yes|System version|
|api\_id|[int](../types/int.md) | Yes|Api ID|
|app\_name|[string](../types/string.md) | Yes|App name|
|app\_version|[string](../types/string.md) | Yes|App version|
|date\_created|[int](../types/int.md) | Yes|Date created|
|date\_active|[int](../types/int.md) | Yes|Date active|
|ip|[string](../types/string.md) | Yes|Ip|
|country|[string](../types/string.md) | Yes|Country|
|region|[string](../types/string.md) | Yes|Region|
### Type: [Authorization](../types/Authorization.md)
### Example:
```php
$authorization = ['_' => 'authorization', 'current' => Bool, 'official_app' => Bool, 'password_pending' => Bool, '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", "current": Bool, "official_app": Bool, "password_pending": Bool, "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:
```lua
authorization={_='authorization', current=Bool, official_app=Bool, password_pending=Bool, hash=long, device_model='string', platform='string', system_version='string', api_id=int, app_name='string', app_version='string', date_created=int, date_active=int, ip='string', country='string', region='string'}
```

View File

@ -0,0 +1,9 @@
---
title: boolFalse
description: Represents a boolean with value equal to false
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# boolFalse
[Back to constructor index](index.md)
Represents a boolean with value equal to `false`.

View File

@ -0,0 +1,9 @@
---
title: boolTrue
description: Represents a boolean with value equal to true
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# boolTrue
[Back to constructor index](index.md)
Represents a boolean with value equal to `true`.

View File

@ -0,0 +1,45 @@
---
title: botCommand
description: Bot command
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: botCommand
[Back to constructors index](index.md)
Bot command
### Attributes:
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|command|[string](../types/string.md) | Yes|Command|
|description|[string](../types/string.md) | Yes|Description|
### Type: [BotCommand](../types/BotCommand.md)
### Example:
```php
$botCommand = ['_' => 'botCommand', 'command' => 'string', 'description' => 'string'];
```
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
```
{"_": "botCommand", "command": "string", "description": "string"}
```
Or, if you're into Lua:
```lua
botCommand={_='botCommand', command='string', description='string'}
```

View File

@ -0,0 +1,46 @@
---
title: botInfo
description: Bot info
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: botInfo
[Back to constructors index](index.md)
Bot info
### Attributes:
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|user\_id|[int](../types/int.md) | Yes|User ID|
|description|[string](../types/string.md) | Yes|Description|
|commands|Array of [BotCommand](../types/BotCommand.md) | Yes|Commands|
### Type: [BotInfo](../types/BotInfo.md)
### Example:
```php
$botInfo = ['_' => 'botInfo', 'user_id' => int, 'description' => 'string', 'commands' => [BotCommand, BotCommand]];
```
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
```
{"_": "botInfo", "user_id": int, "description": "string", "commands": [BotCommand]}
```
Or, if you're into Lua:
```lua
botInfo={_='botInfo', user_id=int, description='string', commands={BotCommand}}
```

View File

@ -0,0 +1,50 @@
---
title: botInlineMediaResult
description: Bot inline media result
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: botInlineMediaResult
[Back to constructors index](index.md)
Bot inline media result
### Attributes:
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|id|[string](../types/string.md) | Yes|ID|
|type|[string](../types/string.md) | Yes|Type|
|photo|[Photo](../types/Photo.md) | Optional|Photo|
|document|[Document](../types/Document.md) | Optional|Document|
|title|[string](../types/string.md) | Optional|Title|
|description|[string](../types/string.md) | Optional|Description|
|send\_message|[BotInlineMessage](../types/BotInlineMessage.md) | Yes|Send message|
### Type: [BotInlineResult](../types/BotInlineResult.md)
### Example:
```php
$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:
```lua
botInlineMediaResult={_='botInlineMediaResult', id='string', type='string', photo=Photo, document=Document, title='string', description='string', send_message=BotInlineMessage}
```

View File

@ -0,0 +1,52 @@
---
title: botInlineMessageMediaAuto
description: Bot inline message media auto
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: botInlineMessageMediaAuto
[Back to constructors index](index.md)
Bot inline message media auto
### Attributes:
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|message|[string](../types/string.md) | Yes|Message|
|entities|Array of [MessageEntity](../types/MessageEntity.md) | Optional|Entities|
|reply\_markup|[ReplyMarkup](../types/ReplyMarkup.md) | Optional|Reply markup|
### Type: [BotInlineMessage](../types/BotInlineMessage.md)
### Example:
```php
$botInlineMessageMediaAuto = ['_' => 'botInlineMessageMediaAuto', 'message' => 'string', 'entities' => [MessageEntity, MessageEntity], 'reply_markup' => ReplyMarkup];
```
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
```
{"_": "botInlineMessageMediaAuto", "message": "string", "entities": [MessageEntity], "reply_markup": ReplyMarkup}
```
Or, if you're into Lua:
```lua
botInlineMessageMediaAuto={_='botInlineMessageMediaAuto', message='string', entities={MessageEntity}, reply_markup=ReplyMarkup}
```
## Usage of reply_markup
You can provide bot API reply_markup objects here.

View File

@ -0,0 +1,54 @@
---
title: botInlineMessageMediaContact
description: Bot inline message media contact
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: botInlineMessageMediaContact
[Back to constructors index](index.md)
Bot inline message media contact
### Attributes:
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|phone\_number|[string](../types/string.md) | Yes|Phone number|
|first\_name|[string](../types/string.md) | Yes|First name|
|last\_name|[string](../types/string.md) | Yes|Last name|
|vcard|[string](../types/string.md) | Yes|Vcard|
|reply\_markup|[ReplyMarkup](../types/ReplyMarkup.md) | Optional|Reply markup|
### Type: [BotInlineMessage](../types/BotInlineMessage.md)
### Example:
```php
$botInlineMessageMediaContact = ['_' => 'botInlineMessageMediaContact', 'phone_number' => 'string', 'first_name' => 'string', 'last_name' => 'string', 'vcard' => 'string', 'reply_markup' => ReplyMarkup];
```
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
```
{"_": "botInlineMessageMediaContact", "phone_number": "string", "first_name": "string", "last_name": "string", "vcard": "string", "reply_markup": ReplyMarkup}
```
Or, if you're into Lua:
```lua
botInlineMessageMediaContact={_='botInlineMessageMediaContact', phone_number='string', first_name='string', last_name='string', vcard='string', reply_markup=ReplyMarkup}
```
## Usage of reply_markup
You can provide bot API reply_markup objects here.

View File

@ -0,0 +1,52 @@
---
title: botInlineMessageMediaGeo
description: Bot inline message media geo
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: botInlineMessageMediaGeo
[Back to constructors index](index.md)
Bot inline message media geo
### Attributes:
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|geo|[GeoPoint](../types/GeoPoint.md) | Optional|Geo|
|period|[int](../types/int.md) | Yes|Period|
|reply\_markup|[ReplyMarkup](../types/ReplyMarkup.md) | Optional|Reply markup|
### Type: [BotInlineMessage](../types/BotInlineMessage.md)
### Example:
```php
$botInlineMessageMediaGeo = ['_' => 'botInlineMessageMediaGeo', 'geo' => GeoPoint, 'period' => int, 'reply_markup' => ReplyMarkup];
```
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
```
{"_": "botInlineMessageMediaGeo", "geo": GeoPoint, "period": int, "reply_markup": ReplyMarkup}
```
Or, if you're into Lua:
```lua
botInlineMessageMediaGeo={_='botInlineMessageMediaGeo', geo=GeoPoint, period=int, reply_markup=ReplyMarkup}
```
## Usage of reply_markup
You can provide bot API reply_markup objects here.

View File

@ -0,0 +1,56 @@
---
title: botInlineMessageMediaVenue
description: Bot inline message media venue
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: botInlineMessageMediaVenue
[Back to constructors index](index.md)
Bot inline message media venue
### Attributes:
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|geo|[GeoPoint](../types/GeoPoint.md) | Optional|Geo|
|title|[string](../types/string.md) | Yes|Title|
|address|[string](../types/string.md) | Yes|Address|
|provider|[string](../types/string.md) | Yes|Provider|
|venue\_id|[string](../types/string.md) | Yes|Venue ID|
|venue\_type|[string](../types/string.md) | Yes|Venue type|
|reply\_markup|[ReplyMarkup](../types/ReplyMarkup.md) | Optional|Reply markup|
### Type: [BotInlineMessage](../types/BotInlineMessage.md)
### Example:
```php
$botInlineMessageMediaVenue = ['_' => 'botInlineMessageMediaVenue', 'geo' => GeoPoint, 'title' => 'string', 'address' => 'string', 'provider' => 'string', 'venue_id' => 'string', 'venue_type' => 'string', 'reply_markup' => ReplyMarkup];
```
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
```
{"_": "botInlineMessageMediaVenue", "geo": GeoPoint, "title": "string", "address": "string", "provider": "string", "venue_id": "string", "venue_type": "string", "reply_markup": ReplyMarkup}
```
Or, if you're into Lua:
```lua
botInlineMessageMediaVenue={_='botInlineMessageMediaVenue', geo=GeoPoint, title='string', address='string', provider='string', venue_id='string', venue_type='string', reply_markup=ReplyMarkup}
```
## Usage of reply_markup
You can provide bot API reply_markup objects here.

View File

@ -0,0 +1,53 @@
---
title: botInlineMessageText
description: Bot inline message text
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: botInlineMessageText
[Back to constructors index](index.md)
Bot inline message text
### Attributes:
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|no\_webpage|[Bool](../types/Bool.md) | Optional|No webpage?|
|message|[string](../types/string.md) | Yes|Message|
|entities|Array of [MessageEntity](../types/MessageEntity.md) | Optional|Entities|
|reply\_markup|[ReplyMarkup](../types/ReplyMarkup.md) | Optional|Reply markup|
### Type: [BotInlineMessage](../types/BotInlineMessage.md)
### Example:
```php
$botInlineMessageText = ['_' => 'botInlineMessageText', 'no_webpage' => Bool, 'message' => 'string', 'entities' => [MessageEntity, 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:
```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.

View File

@ -0,0 +1,51 @@
---
title: botInlineResult
description: Bot inline result
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: botInlineResult
[Back to constructors index](index.md)
Bot inline result
### Attributes:
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|id|[string](../types/string.md) | Yes|ID|
|type|[string](../types/string.md) | Yes|Type|
|title|[string](../types/string.md) | Optional|Title|
|description|[string](../types/string.md) | Optional|Description|
|url|[string](../types/string.md) | Optional|URL|
|thumb|[WebDocument](../types/WebDocument.md) | Optional|Thumbnailnail|
|content|[WebDocument](../types/WebDocument.md) | Optional|Content|
|send\_message|[BotInlineMessage](../types/BotInlineMessage.md) | Yes|Message to send|
### Type: [BotInlineResult](../types/BotInlineResult.md)
### Example:
```php
$botInlineResult = ['_' => 'botInlineResult', 'id' => 'string', 'type' => 'string', 'title' => 'string', 'description' => 'string', 'url' => 'string', 'thumb' => WebDocument, 'content' => WebDocument, 'send_message' => BotInlineMessage];
```
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
```
{"_": "botInlineResult", "id": "string", "type": "string", "title": "string", "description": "string", "url": "string", "thumb": WebDocument, "content": WebDocument, "send_message": BotInlineMessage}
```
Or, if you're into Lua:
```lua
botInlineResult={_='botInlineResult', id='string', type='string', title='string', description='string', url='string', thumb=WebDocument, content=WebDocument, send_message=BotInlineMessage}
```

View File

@ -0,0 +1,44 @@
---
title: cdnConfig
description: CDN configuration
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: cdnConfig
[Back to constructors index](index.md)
CDN configuration
### Attributes:
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|public\_keys|Array of [CdnPublicKey](../types/CdnPublicKey.md) | Yes|Public keys|
### Type: [CdnConfig](../types/CdnConfig.md)
### Example:
```php
$cdnConfig = ['_' => 'cdnConfig', 'public_keys' => [CdnPublicKey, CdnPublicKey]];
```
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
```
{"_": "cdnConfig", "public_keys": [CdnPublicKey]}
```
Or, if you're into Lua:
```lua
cdnConfig={_='cdnConfig', public_keys={CdnPublicKey}}
```

View File

@ -0,0 +1,45 @@
---
title: cdnPublicKey
description: Cdn public key
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: cdnPublicKey
[Back to constructors index](index.md)
Cdn public key
### Attributes:
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|dc\_id|[int](../types/int.md) | Yes|DC ID|
|public\_key|[string](../types/string.md) | Yes|Public key|
### Type: [CdnPublicKey](../types/CdnPublicKey.md)
### Example:
```php
$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:
```lua
cdnPublicKey={_='cdnPublicKey', dc_id=int, public_key='string'}
```

View File

@ -0,0 +1,64 @@
---
title: channel
description: Channel
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: channel
[Back to constructors index](index.md)
Channel
### Attributes:
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|creator|[Bool](../types/Bool.md) | Optional|Creator?|
|left|[Bool](../types/Bool.md) | Optional|Left?|
|editor|[Bool](../types/Bool.md) | Optional|Editor?|
|broadcast|[Bool](../types/Bool.md) | Optional|Broadcast?|
|verified|[Bool](../types/Bool.md) | Optional|Verified?|
|megagroup|[Bool](../types/Bool.md) | Optional|Megagroup?|
|restricted|[Bool](../types/Bool.md) | Optional|Restricted?|
|democracy|[Bool](../types/Bool.md) | Optional|Democracy?|
|signatures|[Bool](../types/Bool.md) | Optional|Signatures?|
|min|[Bool](../types/Bool.md) | Optional|Min?|
|id|[int](../types/int.md) | Yes|ID|
|access\_hash|[long](../types/long.md) | Optional|Access hash|
|title|[string](../types/string.md) | Yes|Title|
|username|[string](../types/string.md) | Optional|Username|
|photo|[ChatPhoto](../types/ChatPhoto.md) | Optional|Photo|
|date|[int](../types/int.md) | Yes|Date|
|version|[int](../types/int.md) | Yes|Version|
|restriction\_reason|[string](../types/string.md) | Optional|Restriction reason|
|admin\_rights|[ChannelAdminRights](../types/ChannelAdminRights.md) | Optional|Admin rights|
|banned\_rights|[ChannelBannedRights](../types/ChannelBannedRights.md) | Optional|Banned rights|
|participants\_count|[int](../types/int.md) | Optional|Participants count|
### Type: [Chat](../types/Chat.md)
### Example:
```php
$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, 'participants_count' => int];
```
[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, "participants_count": int}
```
Or, if you're into Lua:
```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, participants_count=int}
```

View File

@ -0,0 +1,47 @@
---
title: channelAdminLogEvent
description: Channel admin log event
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: channelAdminLogEvent
[Back to constructors index](index.md)
Channel admin log event
### Attributes:
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|id|[long](../types/long.md) | Yes|ID|
|date|[int](../types/int.md) | Yes|Date|
|user\_id|[int](../types/int.md) | Yes|User ID|
|action|[ChannelAdminLogEventAction](../types/ChannelAdminLogEventAction.md) | Yes|Action|
### Type: [ChannelAdminLogEvent](../types/ChannelAdminLogEvent.md)
### Example:
```php
$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:
```lua
channelAdminLogEvent={_='channelAdminLogEvent', id=long, date=int, user_id=int, action=ChannelAdminLogEventAction}
```

View File

@ -0,0 +1,45 @@
---
title: channelAdminLogEventActionChangeAbout
description: Change about text
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: channelAdminLogEventActionChangeAbout
[Back to constructors index](index.md)
Change about text
### Attributes:
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|prev\_value|[string](../types/string.md) | Yes|Previous value|
|new\_value|[string](../types/string.md) | Yes|New value|
### Type: [ChannelAdminLogEventAction](../types/ChannelAdminLogEventAction.md)
### Example:
```php
$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:
```lua
channelAdminLogEventActionChangeAbout={_='channelAdminLogEventActionChangeAbout', prev_value='string', new_value='string'}
```

View File

@ -0,0 +1,45 @@
---
title: channelAdminLogEventActionChangePhoto
description: Change photo
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: channelAdminLogEventActionChangePhoto
[Back to constructors index](index.md)
Change photo
### Attributes:
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|prev\_photo|[ChatPhoto](../types/ChatPhoto.md) | Optional|Previous photo|
|new\_photo|[ChatPhoto](../types/ChatPhoto.md) | Optional|New photo|
### Type: [ChannelAdminLogEventAction](../types/ChannelAdminLogEventAction.md)
### Example:
```php
$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:
```lua
channelAdminLogEventActionChangePhoto={_='channelAdminLogEventActionChangePhoto', prev_photo=ChatPhoto, new_photo=ChatPhoto}
```

View File

@ -0,0 +1,45 @@
---
title: channelAdminLogEventActionChangeStickerSet
description: Change stickerset
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: channelAdminLogEventActionChangeStickerSet
[Back to constructors index](index.md)
Change stickerset
### Attributes:
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|prev\_stickerset|[InputStickerSet](../types/InputStickerSet.md) | Optional|Previous stickerset|
|new\_stickerset|[InputStickerSet](../types/InputStickerSet.md) | Optional|New stickerset|
### Type: [ChannelAdminLogEventAction](../types/ChannelAdminLogEventAction.md)
### Example:
```php
$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:
```lua
channelAdminLogEventActionChangeStickerSet={_='channelAdminLogEventActionChangeStickerSet', prev_stickerset=InputStickerSet, new_stickerset=InputStickerSet}
```

View File

@ -0,0 +1,45 @@
---
title: channelAdminLogEventActionChangeTitle
description: Change title
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: channelAdminLogEventActionChangeTitle
[Back to constructors index](index.md)
Change title
### Attributes:
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|prev\_value|[string](../types/string.md) | Yes|Previous value|
|new\_value|[string](../types/string.md) | Yes|New value|
### Type: [ChannelAdminLogEventAction](../types/ChannelAdminLogEventAction.md)
### Example:
```php
$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:
```lua
channelAdminLogEventActionChangeTitle={_='channelAdminLogEventActionChangeTitle', prev_value='string', new_value='string'}
```

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