commit
59f3e3eb63
45
docs/API_docs/constructors/account_wallPapers.md
Normal file
45
docs/API_docs/constructors/account_wallPapers.md
Normal file
@ -0,0 +1,45 @@
|
||||
---
|
||||
title: account.wallPapers
|
||||
description: Wallpapers
|
||||
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
|
||||
---
|
||||
# Constructor: account.wallPapers
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
Wallpapers
|
||||
|
||||
### Attributes:
|
||||
|
||||
| Name | Type | Required | Description |
|
||||
|----------|---------------|----------|-------------|
|
||||
|hash|[int](../types/int.md) | Yes|Hash|
|
||||
|wallpapers|Array of [WallPaper](../types/WallPaper.md) | Yes|Wallpapers|
|
||||
|
||||
|
||||
|
||||
### 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}}
|
||||
|
||||
```
|
||||
|
||||
|
39
docs/API_docs/constructors/account_wallPapersNotModified.md
Normal file
39
docs/API_docs/constructors/account_wallPapersNotModified.md
Normal file
@ -0,0 +1,39 @@
|
||||
---
|
||||
title: account.wallPapersNotModified
|
||||
description: No wallpapers were modified
|
||||
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
|
||||
---
|
||||
# Constructor: account.wallPapersNotModified
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
No wallpapers were modified
|
||||
|
||||
|
||||
|
||||
|
||||
### 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'}
|
||||
|
||||
```
|
||||
|
||||
|
@ -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|Admin rights of current user|
|
||||
|banned\_rights|[ChatBannedRights](../types/ChatBannedRights.md) | Optional|Banned rights of current user|
|
||||
|default\_banned\_rights|[ChatBannedRights](../types/ChatBannedRights.md) | Optional|Global chat banned rights|
|
||||
|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}
|
||||
|
||||
```
|
||||
|
||||
|
@ -0,0 +1,45 @@
|
||||
---
|
||||
title: channelAdminLogEventActionDefaultBannedRights
|
||||
description: Changed global chat rights
|
||||
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
|
||||
---
|
||||
# Constructor: channelAdminLogEventActionDefaultBannedRights
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
Changed global chat rights
|
||||
|
||||
### Attributes:
|
||||
|
||||
| Name | Type | Required | Description |
|
||||
|----------|---------------|----------|-------------|
|
||||
|prev\_banned\_rights|[ChatBannedRights](../types/ChatBannedRights.md) | Yes|Previous Banned rights of current user|
|
||||
|new\_banned\_rights|[ChatBannedRights](../types/ChatBannedRights.md) | Yes|New Banned rights of current user|
|
||||
|
||||
|
||||
|
||||
### 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}
|
||||
|
||||
```
|
||||
|
||||
|
@ -0,0 +1,44 @@
|
||||
---
|
||||
title: channelAdminLogEventActionStopPoll
|
||||
description: Stopped poll
|
||||
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
|
||||
---
|
||||
# Constructor: channelAdminLogEventActionStopPoll
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
Stopped poll
|
||||
|
||||
### Attributes:
|
||||
|
||||
| Name | Type | Required | Description |
|
||||
|----------|---------------|----------|-------------|
|
||||
|message|[Message](../types/Message.md) | Optional|Message|
|
||||
|
||||
|
||||
|
||||
### 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}
|
||||
|
||||
```
|
||||
|
||||
|
@ -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|Is this the current user?|
|
||||
|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|Admin rights|
|
||||
|
||||
|
||||
|
||||
@ -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}
|
||||
|
||||
```
|
||||
|
||||
|
@ -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|Banned rights|
|
||||
|
||||
|
||||
|
||||
@ -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}
|
||||
|
||||
```
|
||||
|
||||
|
44
docs/API_docs/constructors/channelParticipantsContacts.md
Normal file
44
docs/API_docs/constructors/channelParticipantsContacts.md
Normal file
@ -0,0 +1,44 @@
|
||||
---
|
||||
title: channelParticipantsContacts
|
||||
description: Contacts
|
||||
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
|
||||
---
|
||||
# Constructor: channelParticipantsContacts
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
Contacts
|
||||
|
||||
### Attributes:
|
||||
|
||||
| Name | Type | Required | Description |
|
||||
|----------|---------------|----------|-------------|
|
||||
|q|[string](../types/string.md) | Yes|Query|
|
||||
|
||||
|
||||
|
||||
### 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'}
|
||||
|
||||
```
|
||||
|
||||
|
@ -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|Admin rights of current user|
|
||||
|default\_banned\_rights|[ChatBannedRights](../types/ChatBannedRights.md) | Optional|Global chat banned rights|
|
||||
|
||||
|
||||
|
||||
@ -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}
|
||||
|
||||
```
|
||||
|
||||
|
51
docs/API_docs/constructors/chatAdminRights.md
Normal file
51
docs/API_docs/constructors/chatAdminRights.md
Normal file
@ -0,0 +1,51 @@
|
||||
---
|
||||
title: chatAdminRights
|
||||
description: Admin rights
|
||||
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
|
||||
---
|
||||
# Constructor: chatAdminRights
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
Admin rights
|
||||
|
||||
### Attributes:
|
||||
|
||||
| Name | Type | Required | Description |
|
||||
|----------|---------------|----------|-------------|
|
||||
|change\_info|[Bool](../types/Bool.md) | Optional|Can change info?|
|
||||
|post\_messages|[Bool](../types/Bool.md) | Optional|Can post messages?|
|
||||
|edit\_messages|[Bool](../types/Bool.md) | Optional|Can edit messages?|
|
||||
|delete\_messages|[Bool](../types/Bool.md) | Optional|Can delete messages?|
|
||||
|ban\_users|[Bool](../types/Bool.md) | Optional|Can ban users?|
|
||||
|invite\_users|[Bool](../types/Bool.md) | Optional|Can invite users?|
|
||||
|pin\_messages|[Bool](../types/Bool.md) | Optional|Can pin messages?|
|
||||
|add\_admins|[Bool](../types/Bool.md) | Optional|Can add other admins?|
|
||||
|
||||
|
||||
|
||||
### 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}
|
||||
|
||||
```
|
||||
|
||||
|
56
docs/API_docs/constructors/chatBannedRights.md
Normal file
56
docs/API_docs/constructors/chatBannedRights.md
Normal file
@ -0,0 +1,56 @@
|
||||
---
|
||||
title: chatBannedRights
|
||||
description: Banned rights (when true, the user will NOT be able to do that thing)
|
||||
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
|
||||
---
|
||||
# Constructor: chatBannedRights
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
Banned rights (when true, the user will NOT be able to do that thing)
|
||||
|
||||
### Attributes:
|
||||
|
||||
| Name | Type | Required | Description |
|
||||
|----------|---------------|----------|-------------|
|
||||
|view\_messages|[Bool](../types/Bool.md) | Optional|Can view messages?|
|
||||
|send\_messages|[Bool](../types/Bool.md) | Optional|Can send messages?|
|
||||
|send\_media|[Bool](../types/Bool.md) | Optional|Can send media?|
|
||||
|send\_stickers|[Bool](../types/Bool.md) | Optional|Can send stickers?|
|
||||
|send\_gifs|[Bool](../types/Bool.md) | Optional|Can send gifs?|
|
||||
|send\_games|[Bool](../types/Bool.md) | Optional|Can send games?|
|
||||
|send\_inline|[Bool](../types/Bool.md) | Optional|Can use inline bots?|
|
||||
|embed\_links|[Bool](../types/Bool.md) | Optional|Can embed links?|
|
||||
|send\_polls|[Bool](../types/Bool.md) | Optional|Can send polls?|
|
||||
|change\_info|[Bool](../types/Bool.md) | Optional|Can change info?|
|
||||
|invite\_users|[Bool](../types/Bool.md) | Optional|Can invite users?|
|
||||
|pin\_messages|[Bool](../types/Bool.md) | Optional|Can pin messages?|
|
||||
|until\_date|[int](../types/int.md) | Yes|Until date (0 = forever)|
|
||||
|
||||
|
||||
|
||||
### 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}
|
||||
|
||||
```
|
||||
|
||||
|
@ -14,7 +14,9 @@ Chat full
|
||||
|
||||
| Name | Type | Required | Description |
|
||||
|----------|---------------|----------|-------------|
|
||||
|can\_set\_username|[Bool](../types/Bool.md) | Optional|Can set username?|
|
||||
|id|[int](../types/int.md) | Yes|ID|
|
||||
|about|[string](../types/string.md) | Yes|Chat about|
|
||||
|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}
|
||||
|
||||
```
|
||||
|
||||
|
47
docs/API_docs/constructors/codeSettings.md
Normal file
47
docs/API_docs/constructors/codeSettings.md
Normal file
@ -0,0 +1,47 @@
|
||||
---
|
||||
title: codeSettings
|
||||
description: Code settings
|
||||
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
|
||||
---
|
||||
# Constructor: codeSettings
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
Code settings
|
||||
|
||||
### Attributes:
|
||||
|
||||
| Name | Type | Required | Description |
|
||||
|----------|---------------|----------|-------------|
|
||||
|allow\_flashcall|[Bool](../types/Bool.md) | Optional|Allow flashcal?|
|
||||
|current\_number|[Bool](../types/Bool.md) | Optional|Current number?|
|
||||
|app\_hash\_persistent|[Bool](../types/Bool.md) | Optional|Persistent hash?|
|
||||
|app\_hash|[string](../types/string.md) | Optional|Hash type|
|
||||
|
||||
|
||||
|
||||
### 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'}
|
||||
|
||||
```
|
||||
|
||||
|
@ -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|Thumbnails|
|
||||
|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}}
|
||||
|
||||
```
|
||||
|
||||
|
@ -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>
|
||||
|
45
docs/API_docs/constructors/inputWallPaper.md
Normal file
45
docs/API_docs/constructors/inputWallPaper.md
Normal file
@ -0,0 +1,45 @@
|
||||
---
|
||||
title: inputWallPaper
|
||||
description: Wallpaper
|
||||
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
|
||||
---
|
||||
# Constructor: inputWallPaper
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
Wallpaper
|
||||
|
||||
### Attributes:
|
||||
|
||||
| Name | Type | Required | Description |
|
||||
|----------|---------------|----------|-------------|
|
||||
|id|[long](../types/long.md) | Yes|ID|
|
||||
|access\_hash|[long](../types/long.md) | Yes|Access hash|
|
||||
|
||||
|
||||
|
||||
### 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}
|
||||
|
||||
```
|
||||
|
||||
|
44
docs/API_docs/constructors/inputWallPaperSlug.md
Normal file
44
docs/API_docs/constructors/inputWallPaperSlug.md
Normal file
@ -0,0 +1,44 @@
|
||||
---
|
||||
title: inputWallPaperSlug
|
||||
description: Wallpaper slug
|
||||
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
|
||||
---
|
||||
# Constructor: inputWallPaperSlug
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
Wallpaper slug
|
||||
|
||||
### Attributes:
|
||||
|
||||
| Name | Type | Required | Description |
|
||||
|----------|---------------|----------|-------------|
|
||||
|slug|[string](../types/string.md) | Yes|Type|
|
||||
|
||||
|
||||
|
||||
### 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'}
|
||||
|
||||
```
|
||||
|
||||
|
@ -14,6 +14,7 @@ Messages slice
|
||||
|
||||
| Name | Type | Required | Description |
|
||||
|----------|---------------|----------|-------------|
|
||||
|inexact|[Bool](../types/Bool.md) | Optional|Inexact?|
|
||||
|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}}
|
||||
|
||||
```
|
||||
|
||||
|
45
docs/API_docs/constructors/photoStrippedSize.md
Normal file
45
docs/API_docs/constructors/photoStrippedSize.md
Normal file
@ -0,0 +1,45 @@
|
||||
---
|
||||
title: photoStrippedSize
|
||||
description: Stripped size
|
||||
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
|
||||
---
|
||||
# Constructor: photoStrippedSize
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
Stripped size
|
||||
|
||||
### Attributes:
|
||||
|
||||
| Name | Type | Required | Description |
|
||||
|----------|---------------|----------|-------------|
|
||||
|type|[string](../types/string.md) | Yes|Stripped size|
|
||||
|bytes|[bytes](../types/bytes.md) | Yes|Bytes|
|
||||
|
||||
|
||||
|
||||
### 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'}
|
||||
|
||||
```
|
||||
|
||||
|
46
docs/API_docs/constructors/updateChatDefaultBannedRights.md
Normal file
46
docs/API_docs/constructors/updateChatDefaultBannedRights.md
Normal file
@ -0,0 +1,46 @@
|
||||
---
|
||||
title: updateChatDefaultBannedRights
|
||||
description: Global chat rights updated
|
||||
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
|
||||
---
|
||||
# Constructor: updateChatDefaultBannedRights
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
Global chat rights updated
|
||||
|
||||
### Attributes:
|
||||
|
||||
| Name | Type | Required | Description |
|
||||
|----------|---------------|----------|-------------|
|
||||
|peer|[Peer](../types/Peer.md) | Yes|Peer|
|
||||
|default\_banned\_rights|[ChatBannedRights](../types/ChatBannedRights.md) | Yes|Global chat rights|
|
||||
|version|[int](../types/int.md) | Yes|Version|
|
||||
|
||||
|
||||
|
||||
### 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}
|
||||
|
||||
```
|
||||
|
||||
|
@ -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|ID|
|
||||
|creator|[Bool](../types/Bool.md) | Optional|Am I the creator?|
|
||||
|default|[Bool](../types/Bool.md) | Optional|Default?|
|
||||
|pattern|[Bool](../types/Bool.md) | Optional|Pattern|
|
||||
|dark|[Bool](../types/Bool.md) | Optional|Dark?|
|
||||
|access\_hash|[long](../types/long.md) | Yes|Hash|
|
||||
|slug|[string](../types/string.md) | Yes|Slug?|
|
||||
|document|[Document](../types/Document.md) | Optional|Wallpaper|
|
||||
|settings|[WallPaperSettings](../types/WallPaperSettings.md) | Optional|Wallpaper settings|
|
||||
|
||||
|
||||
|
||||
@ -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}
|
||||
|
||||
```
|
||||
|
||||
|
47
docs/API_docs/constructors/wallPaperSettings.md
Normal file
47
docs/API_docs/constructors/wallPaperSettings.md
Normal file
@ -0,0 +1,47 @@
|
||||
---
|
||||
title: wallPaperSettings
|
||||
description: Wallpaper settings
|
||||
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
|
||||
---
|
||||
# Constructor: wallPaperSettings
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
Wallpaper settings
|
||||
|
||||
### Attributes:
|
||||
|
||||
| Name | Type | Required | Description |
|
||||
|----------|---------------|----------|-------------|
|
||||
|blur|[Bool](../types/Bool.md) | Optional|Blur?|
|
||||
|motion|[Bool](../types/Bool.md) | Optional|Motion?|
|
||||
|background\_color|[int](../types/int.md) | Optional|Background color|
|
||||
|intensity|[int](../types/int.md) | Optional|Intensity|
|
||||
|
||||
|
||||
|
||||
### 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}
|
||||
|
||||
```
|
||||
|
||||
|
@ -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](..)
|
||||
|
||||
|
68
docs/API_docs/methods/account_getWallPaper.md
Normal file
68
docs/API_docs/methods/account_getWallPaper.md
Normal file
@ -0,0 +1,68 @@
|
||||
---
|
||||
title: account.getWallPaper
|
||||
description: Get wallpaper info
|
||||
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
|
||||
---
|
||||
# Method: account.getWallPaper
|
||||
[Back to methods index](index.md)
|
||||
|
||||
|
||||
Get wallpaper info
|
||||
|
||||
### Parameters:
|
||||
|
||||
| Name | Type | Description | Required |
|
||||
|----------|---------------|-------------|----------|
|
||||
|wallpaper|[InputWallPaper](../types/InputWallPaper.md) | Wallpaper | 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, })
|
||||
```
|
||||
|
@ -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) | IDs of previously fetched wallpapers | 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}, })
|
||||
```
|
||||
|
||||
|
71
docs/API_docs/methods/account_installWallPaper.md
Normal file
71
docs/API_docs/methods/account_installWallPaper.md
Normal file
@ -0,0 +1,71 @@
|
||||
---
|
||||
title: account.installWallPaper
|
||||
description: Install wallpaper
|
||||
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
|
||||
---
|
||||
# Method: account.installWallPaper
|
||||
[Back to methods index](index.md)
|
||||
|
||||
|
||||
Install wallpaper
|
||||
|
||||
### Parameters:
|
||||
|
||||
| Name | Type | Description | Required |
|
||||
|----------|---------------|-------------|----------|
|
||||
|wallpaper|[InputWallPaper](../types/InputWallPaper.md) | Wallpaper to install | Yes|
|
||||
|settings|[WallPaperSettings](../types/WallPaperSettings.md) | Wallpaper settings | 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, })
|
||||
```
|
||||
|
61
docs/API_docs/methods/account_resetWallPapers.md
Normal file
61
docs/API_docs/methods/account_resetWallPapers.md
Normal file
@ -0,0 +1,61 @@
|
||||
---
|
||||
title: account.resetWallPapers
|
||||
description: Reset wallpapers
|
||||
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
|
||||
---
|
||||
# Method: account.resetWallPapers
|
||||
[Back to methods index](index.md)
|
||||
|
||||
|
||||
Reset wallpapers
|
||||
|
||||
|
||||
|
||||
### 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({})
|
||||
```
|
||||
|
74
docs/API_docs/methods/account_saveWallPaper.md
Normal file
74
docs/API_docs/methods/account_saveWallPaper.md
Normal file
@ -0,0 +1,74 @@
|
||||
---
|
||||
title: account.saveWallPaper
|
||||
description: Save wallpaper
|
||||
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
|
||||
---
|
||||
# Method: account.saveWallPaper
|
||||
[Back to methods index](index.md)
|
||||
|
||||
|
||||
Save wallpaper
|
||||
|
||||
### Parameters:
|
||||
|
||||
| Name | Type | Description | Required |
|
||||
|----------|---------------|-------------|----------|
|
||||
|wallpaper|[InputWallPaper](../types/InputWallPaper.md) | The wallpaper to save | Yes|
|
||||
|unsave|[Bool](../types/Bool.md) | Delete saved wallpaper | Yes|
|
||||
|settings|[WallPaperSettings](../types/WallPaperSettings.md) | The wallpaper to save | 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, })
|
||||
```
|
||||
|
@ -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) | Code settings | 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:
|
||||
|
@ -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) | Code settings | 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:
|
||||
|
@ -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) | Code settings | 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, })
|
||||
```
|
||||
|
||||
|
74
docs/API_docs/methods/account_uploadWallPaper.md
Normal file
74
docs/API_docs/methods/account_uploadWallPaper.md
Normal file
@ -0,0 +1,74 @@
|
||||
---
|
||||
title: account.uploadWallPaper
|
||||
description: Upload wallpaper
|
||||
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
|
||||
---
|
||||
# Method: account.uploadWallPaper
|
||||
[Back to methods index](index.md)
|
||||
|
||||
|
||||
Upload wallpaper
|
||||
|
||||
### Parameters:
|
||||
|
||||
| Name | Type | Description | Required |
|
||||
|----------|---------------|-------------|----------|
|
||||
|file|[File path or InputFile](../types/InputFile.md) | Image | Yes|
|
||||
|mime\_type|[string](../types/string.md) | Mime type | Yes|
|
||||
|settings|[WallPaperSettings](../types/WallPaperSettings.md) | Wallpaper settings | 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, })
|
||||
```
|
||||
|
@ -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>
|
||||
|
@ -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) | Admin rights | 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:
|
||||
|
@ -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) | Banned rights | 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:
|
||||
|
@ -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,7 +150,9 @@ 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_editChatAbout.html" name="messages_editChatAbout">Edit chat info: messages.editChatAbout</a>
|
||||
|
||||
* <a href="messages_editChatDefaultBannedRights.html" name="messages_editChatDefaultBannedRights">Edit default rights of chat: messages.editChatDefaultBannedRights</a>
|
||||
|
||||
* <a href="messages_editChatPhoto.html" name="messages_editChatPhoto">Edit the photo of a normal chat (not supergroup): messages.editChatPhoto</a>
|
||||
|
||||
@ -164,14 +164,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>
|
||||
@ -340,6 +336,8 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
|
||||
|
||||
* <a href="help_getUserInfo.html" name="help_getUserInfo">Get user info: help.getUserInfo</a>
|
||||
|
||||
* <a href="account_getWallPaper.html" name="account_getWallPaper">Get wallpaper info: account.getWallPaper</a>
|
||||
|
||||
* <a href="messages_getWebPage.html" name="messages_getWebPage">Get webpage preview: messages.getWebPage</a>
|
||||
|
||||
* <a href="messages_getWebPagePreview.html" name="messages_getWebPagePreview">Get webpage preview: messages.getWebPagePreview</a>
|
||||
@ -354,6 +352,8 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
|
||||
|
||||
* <a href="initConnection.html" name="initConnection">Initializes connection and save information on the user's device and application.: initConnection</a>
|
||||
|
||||
* <a href="account_installWallPaper.html" name="account_installWallPaper">Install wallpaper: account.installWallPaper</a>
|
||||
|
||||
* <a href="auth_cancelCode.html" name="auth_cancelCode">Invalidate sent phone code: auth.cancelCode</a>
|
||||
|
||||
* <a href="invokeWithTakeout.html" name="invokeWithTakeout">Invoke method from takeout session: invokeWithTakeout</a>
|
||||
@ -428,6 +428,8 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
|
||||
|
||||
* <a href="contacts_resetTopPeerRating.html" name="contacts_resetTopPeerRating">Reset top peer rating for a certain category/peer: contacts.resetTopPeerRating</a>
|
||||
|
||||
* <a href="account_resetWallPapers.html" name="account_resetWallPapers">Reset wallpapers: account.resetWallPapers</a>
|
||||
|
||||
* <a href="invokeAfterMsgs.html" name="invokeAfterMsgs">Result type returned by a current query.: invokeAfterMsgs</a>
|
||||
|
||||
* <a href="account_getWallPapers.html" name="account_getWallPapers">Returns a list of available wallpapers.: account.getWallPapers</a>
|
||||
@ -440,6 +442,8 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
|
||||
|
||||
* <a href="account_saveSecureValue.html" name="account_saveSecureValue">Save telegram passport secure value: account.saveSecureValue</a>
|
||||
|
||||
* <a href="account_saveWallPaper.html" name="account_saveWallPaper">Save wallpaper: account.saveWallPaper</a>
|
||||
|
||||
* <a href="contacts_search.html" name="contacts_search">Search contacts: contacts.search</a>
|
||||
|
||||
* <a href="messages_searchGifs.html" name="messages_searchGifs">Search gifs: messages.searchGifs</a>
|
||||
@ -524,6 +528,8 @@ image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
|
||||
|
||||
* <a href="photos_uploadProfilePhoto.html" name="photos_uploadProfilePhoto">Upload profile photo: photos.uploadProfilePhoto</a>
|
||||
|
||||
* <a href="account_uploadWallPaper.html" name="account_uploadWallPaper">Upload wallpaper: account.uploadWallPaper</a>
|
||||
|
||||
* <a href="auth_recoverPassword.html" name="auth_recoverPassword">Use the code that was emailed to you after running $MadelineProto->auth->requestPasswordRecovery to login to your account: auth.recoverPassword</a>
|
||||
|
||||
* <a href="payments_validateRequestedInfo.html" name="payments_validateRequestedInfo">Validate requested payment info: payments.validateRequestedInfo</a>
|
||||
|
71
docs/API_docs/methods/messages_editChatAbout.md
Normal file
71
docs/API_docs/methods/messages_editChatAbout.md
Normal file
@ -0,0 +1,71 @@
|
||||
---
|
||||
title: messages.editChatAbout
|
||||
description: Edit chat info
|
||||
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
|
||||
---
|
||||
# Method: messages.editChatAbout
|
||||
[Back to methods index](index.md)
|
||||
|
||||
|
||||
Edit chat info
|
||||
|
||||
### Parameters:
|
||||
|
||||
| Name | Type | Description | Required |
|
||||
|----------|---------------|-------------|----------|
|
||||
|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Chat | Optional|
|
||||
|about|[string](../types/string.md) | Info | 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', })
|
||||
```
|
||||
|
@ -0,0 +1,71 @@
|
||||
---
|
||||
title: messages.editChatDefaultBannedRights
|
||||
description: Edit default rights of chat
|
||||
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
|
||||
---
|
||||
# Method: messages.editChatDefaultBannedRights
|
||||
[Back to methods index](index.md)
|
||||
|
||||
|
||||
Edit default rights of chat
|
||||
|
||||
### Parameters:
|
||||
|
||||
| Name | Type | Description | Required |
|
||||
|----------|---------------|-------------|----------|
|
||||
|peer|[Username, chat ID, Update, Message or InputPeer](../types/InputPeer.md) | Chat | Optional|
|
||||
|banned\_rights|[ChatBannedRights](../types/ChatBannedRights.md) | Global chat rights | 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, })
|
||||
```
|
||||
|
@ -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) | Export invite only for this user | 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:
|
||||
|
@ -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):
|
||||
|
@ -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):
|
||||
|
20
docs/API_docs/types/ChatAdminRights.md
Normal file
20
docs/API_docs/types/ChatAdminRights.md
Normal 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):
|
||||
|
||||
|
||||
|
20
docs/API_docs/types/ChatBannedRights.md
Normal file
20
docs/API_docs/types/ChatBannedRights.md
Normal 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):
|
||||
|
||||
|
||||
|
20
docs/API_docs/types/CodeSettings.md
Normal file
20
docs/API_docs/types/CodeSettings.md
Normal 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):
|
||||
|
||||
|
||||
|
@ -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)
|
||||
|
||||
|
||||
|
||||
|
22
docs/API_docs/types/InputWallPaper.md
Normal file
22
docs/API_docs/types/InputWallPaper.md
Normal 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):
|
||||
|
||||
|
||||
|
@ -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):
|
||||
|
@ -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):
|
||||
|
@ -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)
|
||||
|
@ -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)
|
||||
|
||||
|
||||
|
||||
|
20
docs/API_docs/types/WallPaperSettings.md
Normal file
20
docs/API_docs/types/WallPaperSettings.md
Normal 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):
|
||||
|
||||
|
||||
|
24
docs/API_docs/types/account_WallPapers.md
Normal file
24
docs/API_docs/types/account_WallPapers.md
Normal 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)
|
||||
|
||||
|
||||
|
@ -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>
|
||||
|
@ -124,4 +124,4 @@ while (true) {
|
||||
}
|
||||
```
|
||||
|
||||
<a href="https://docs.madelineproto.xyz/docs/SECRET_CHATS.html">Next section</a>
|
||||
<a href="https://docs.madelineproto.xyz/docs/FILES.html">Next section</a>
|
@ -53,4 +53,4 @@ And click them:
|
||||
$button->click();
|
||||
```
|
||||
|
||||
<a href="https://docs.madelineproto.xyz/docs/CALLS.html">Next section</a>
|
||||
<a href="https://docs.madelineproto.xyz/docs/SECRET_CHATS.html">Next section</a>
|
@ -110,4 +110,4 @@ Then you can require the package by addding the following lines to the require s
|
||||
|
||||
```
|
||||
|
||||
<a href="https://docs.madelineproto.xyz/docs/UPDATES.html">Next section</a>
|
||||
<a href="https://docs.madelineproto.xyz/docs/UPDATES.html">Next section</a>
|
@ -22,4 +22,4 @@ MadelineProto provides a unified class for logging messages to the logging desti
|
||||
|
||||
By default, `$level` is `\danog\MadelineProto\Logger:NOTICE`.
|
||||
|
||||
<a href="https://docs.madelineproto.xyz/docs/USING_METHODS.html">Next section</a>
|
||||
<a href="https://docs.madelineproto.xyz/docs/CALLS.html">Next section</a>
|
@ -166,4 +166,4 @@ Can return additional HTTP headers to use when the HTTP protocol is being used.
|
||||
|
||||
Returns the resource used for socket communication: should call `$socket->getResource()`.
|
||||
|
||||
<a href="https://docs.madelineproto.xyz/docs/CONTRIB.html">Next section</a>
|
||||
<a href="https://docs.madelineproto.xyz/docs/USING_METHODS.html">Next section</a>
|
@ -297,4 +297,4 @@ $MadelineProto->setNoop();
|
||||
```
|
||||
When an [Update](https://docs.madelineproto.xyz/API_docs/types/Update.html) is received, nothing is done. This is useful if you need to populate the internal peer database with peers to avoid `This peer is not present in the internal peer database errors`, but don't need to handle updates.
|
||||
|
||||
<a href="https://docs.madelineproto.xyz/docs/SETTINGS.html">Next section</a>
|
||||
<a href="https://docs.madelineproto.xyz/docs/SETTINGS.html">Next section</a>
|
@ -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)
|
||||
@ -107,4 +107,4 @@ $MadelineProto->messages->sendMessage(['peer' => '@danogentili', 'message' => 'l
|
||||
|
||||
If the queue if the specified queue name does not exist, it will be created.
|
||||
|
||||
<a href="https://docs.madelineproto.xyz/docs/FILES.html">Next section</a>
|
||||
<a href="https://docs.madelineproto.xyz/docs/CONTRIB.html">Next section</a>
|
299
docs/index.md
299
docs/index.md
@ -83,16 +83,13 @@ Tip: if you receive an error (or nothing), [send us](https://t.me/pwrtelegramgro
|
||||
* [Getting the TL trace](https://docs.madelineproto.xyz/docs/EXCEPTIONS.html#getting-the-tl-trace)
|
||||
* [Avoiding FLOOD_WAITs](https://docs.madelineproto.xyz/docs/FLOOD_WAIT.html)
|
||||
* [Logging](https://docs.madelineproto.xyz/docs/LOGGING.html)
|
||||
* [Using methods](https://docs.madelineproto.xyz/docs/USING_METHODS.html)
|
||||
* [FULL API Documentation with descriptions](https://docs.madelineproto.xyz/API_docs/methods/)
|
||||
* [Peers](https://docs.madelineproto.xyz/docs/USING_METHODS.html#peers)
|
||||
* [Files](https://docs.madelineproto.xyz/docs/FILES.html)
|
||||
* [Secret chats](https://docs.madelineproto.xyz/docs/USING_METHODS.html#secret-chats)
|
||||
* [Entities (Markdown & HTML)](https://docs.madelineproto.xyz/docs/USING_METHODS.html#entities)
|
||||
* [reply_markup (keyboards & inline keyboards)](https://docs.madelineproto.xyz/docs/USING_METHODS.html#reply_markup)
|
||||
* [bot API objects](https://docs.madelineproto.xyz/docs/USING_METHODS.html#bot-api-objects)
|
||||
* [No result](https://docs.madelineproto.xyz/docs/USING_METHODS.html#no-result)
|
||||
* [Queues](https://docs.madelineproto.xyz/docs/USING_METHODS.html#queues)
|
||||
* [Telegram VoIP phone calls](https://docs.madelineproto.xyz/docs/CALLS.html)
|
||||
* [Requesting a call](https://docs.madelineproto.xyz/docs/CALLS.html#requesting-a-call)
|
||||
* [Playing mp3 files](https://docs.madelineproto.xyz/docs/CALLS.html#playing-mp3-files)
|
||||
* [Playing streams](https://docs.madelineproto.xyz/docs/CALLS.html#playing-streams)
|
||||
* [Changing audio quality](https://docs.madelineproto.xyz/docs/CALLS.html#changing-audio-quality)
|
||||
* [Putting it all together](https://docs.madelineproto.xyz/docs/CALLS.html#putting-it-all-together)
|
||||
* [Accepting calls](https://docs.madelineproto.xyz/docs/CALLS.html#accepting-calls)
|
||||
* [Uploading and downloading files](https://docs.madelineproto.xyz/docs/FILES.html)
|
||||
* [Uploading & sending files](https://docs.madelineproto.xyz/docs/FILES.html#sending-files)
|
||||
* [Security notice](https://docs.madelineproto.xyz/docs/FILES.html#security-notice)
|
||||
@ -120,13 +117,6 @@ Tip: if you receive an error (or nothing), [send us](https://t.me/pwrtelegramgro
|
||||
* [As user](https://docs.madelineproto.xyz/docs/DIALOGS.html#user-get_dialogs)
|
||||
* [As bot](https://docs.madelineproto.xyz/docs/DIALOGS.html#bot-internal-peer-database)
|
||||
* [Inline buttons](https://docs.madelineproto.xyz/docs/INLINE_BUTTONS.html)
|
||||
* [Calls](https://docs.madelineproto.xyz/docs/CALLS.html)
|
||||
* [Requesting a call](https://docs.madelineproto.xyz/docs/CALLS.html#requesting-a-call)
|
||||
* [Playing mp3 files](https://docs.madelineproto.xyz/docs/CALLS.html#playing-mp3-files)
|
||||
* [Playing streams](https://docs.madelineproto.xyz/docs/CALLS.html#playing-streams)
|
||||
* [Changing audio quality](https://docs.madelineproto.xyz/docs/CALLS.html#changing-audio-quality)
|
||||
* [Putting it all together](https://docs.madelineproto.xyz/docs/CALLS.html#putting-it-all-together)
|
||||
* [Accepting calls](https://docs.madelineproto.xyz/docs/CALLS.html#accepting-calls)
|
||||
* [Secret chats](https://docs.madelineproto.xyz/docs/SECRET_CHATS.html)
|
||||
* [Requesting secret chats](https://docs.madelineproto.xyz/docs/SECRET_CHATS.html#requesting-secret-chats)
|
||||
* [Accepting secret chats](https://docs.madelineproto.xyz/docs/SECRET_CHATS.html#accepting-secret-chats)
|
||||
@ -137,6 +127,281 @@ Tip: if you receive an error (or nothing), [send us](https://t.me/pwrtelegramgro
|
||||
* [Use pre-built Socks5 proxy](https://docs.madelineproto.xyz/docs/PROXY.html#socks5-proxy)
|
||||
* [Use pre-built HTTP proxy](https://docs.madelineproto.xyz/docs/PROXY.html#http-proxy)
|
||||
* [Build your own proxy](https://docs.madelineproto.xyz/docs/PROXY.html#build-your-proxy)
|
||||
* [Using methods](https://docs.madelineproto.xyz/docs/USING_METHODS.html)
|
||||
* [FULL API Documentation with descriptions](https://docs.madelineproto.xyz/API_docs/methods/)
|
||||
* [Logout](https://docs.madelineproto.xyz/logout.html)
|
||||
* [Login](https://docs.madelineproto.xyz/docs/LOGIN.html)
|
||||
* [Get all chats, broadcast a message to all chats](https://docs.madelineproto.xyz/docs/DIALOGS.html)
|
||||
* [Get the full participant list of a channel/group/supergroup](https://docs.madelineproto.xyz/get_pwr_chat.html)
|
||||
* [Get full info about a user/chat/supergroup/channel](https://docs.madelineproto.xyz/get_full_info.html)
|
||||
* [Get info about a user/chat/supergroup/channel](https://docs.madelineproto.xyz/get_info.html)
|
||||
* [Get info about the currently logged-in user](https://docs.madelineproto.xyz/get_self.html)
|
||||
* [Upload or download files up to 1.5 GB](https://docs.madelineproto.xyz/docs/FILES.html)
|
||||
* [Make a phone call and play a song](https://docs.madelineproto.xyz/docs/CALLS.html)
|
||||
* [Create a secret chat bot](https://docs.madelineproto.xyz/docs/SECRET_CHATS.html)
|
||||
* <a href="account_acceptAuthorization.html" name="account_acceptAuthorization">Accept telegram passport authorization: account.acceptAuthorization</a>
|
||||
* <a href="help_acceptTermsOfService.html" name="help_acceptTermsOfService">Accept telegram's TOS: help.acceptTermsOfService</a>
|
||||
* <a href="messages_installStickerSet.html" name="messages_installStickerSet">Add a sticker set: messages.installStickerSet</a>
|
||||
* <a href="messages_faveSticker.html" name="messages_faveSticker">Add a sticker to favorites: messages.faveSticker</a>
|
||||
* <a href="messages_saveRecentSticker.html" name="messages_saveRecentSticker">Add a sticker to recent stickers: messages.saveRecentSticker</a>
|
||||
* <a href="messages_addChatUser.html" name="messages_addChatUser">Add a user to a normal chat (use channels->inviteToChannel for supergroups): messages.addChatUser</a>
|
||||
* <a href="contacts_importContacts.html" name="contacts_importContacts">Add phone number as contact: contacts.importContacts</a>
|
||||
* <a href="stickers_addStickerToSet.html" name="stickers_addStickerToSet">Add sticker to stickerset: stickers.addStickerToSet</a>
|
||||
* <a href="channels_inviteToChannel.html" name="channels_inviteToChannel">Add users to channel/supergroup: channels.inviteToChannel</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>
|
||||
* <a href="payments_sendPaymentForm.html" name="payments_sendPaymentForm">Bots only: send payment form: payments.sendPaymentForm</a>
|
||||
* <a href="messages_setBotPrecheckoutResults.html" name="messages_setBotPrecheckoutResults">Bots only: set precheckout results: messages.setBotPrecheckoutResults</a>
|
||||
* <a href="messages_setBotShippingResults.html" name="messages_setBotShippingResults">Bots only: set shipping results: messages.setBotShippingResults</a>
|
||||
* <a href="messages_setBotCallbackAnswer.html" name="messages_setBotCallbackAnswer">Bots only: set the callback answer (after a button was clicked): messages.setBotCallbackAnswer</a>
|
||||
* <a href="messages_setInlineBotResults.html" name="messages_setInlineBotResults">Bots only: set the results of an inline query: messages.setInlineBotResults</a>
|
||||
* <a href="messages_getInlineBotResults.html" name="messages_getInlineBotResults">Call inline bot: messages.getInlineBotResults</a>
|
||||
* <a href="account_cancelPasswordEmail.html" name="account_cancelPasswordEmail">Cancel password recovery email: account.cancelPasswordEmail</a>
|
||||
* <a href="account_updateNotifySettings.html" name="account_updateNotifySettings">Change notification settings: account.updateNotifySettings</a>
|
||||
* <a href="stickers_changeStickerPosition.html" name="stickers_changeStickerPosition">Change sticker position in photo: stickers.changeStickerPosition</a>
|
||||
* <a href="account_changePhone.html" name="account_changePhone">Change the phone number associated to this account: account.changePhone</a>
|
||||
* <a href="account_sendChangePhoneCode.html" name="account_sendChangePhoneCode">Change the phone number: account.sendChangePhoneCode</a>
|
||||
* <a href="photos_updateProfilePhoto.html" name="photos_updateProfilePhoto">Change the profile photo: photos.updateProfilePhoto</a>
|
||||
* <a href="messages_setTyping.html" name="messages_setTyping">Change typing status: messages.setTyping</a>
|
||||
* <a href="messages_getMessageEditData.html" name="messages_getMessageEditData">Check if about to edit a message or a media caption: messages.getMessageEditData</a>
|
||||
* <a href="messages_checkChatInvite.html" name="messages_checkChatInvite">Check if an invitation link is valid: messages.checkChatInvite</a>
|
||||
* <a href="account_checkUsername.html" name="account_checkUsername">Check if this username is available: account.checkUsername</a>
|
||||
* <a href="channels_checkUsername.html" name="channels_checkUsername">Check if this username is free and can be assigned to a channel/supergroup: channels.checkUsername</a>
|
||||
* <a href="messages_clearAllDrafts.html" name="messages_clearAllDrafts">Clear all drafts: messages.clearAllDrafts</a>
|
||||
* <a href="messages_clearRecentStickers.html" name="messages_clearRecentStickers">Clear all recent stickers: messages.clearRecentStickers</a>
|
||||
* <a href="payments_clearSavedInfo.html" name="payments_clearSavedInfo">Clear saved payments info: payments.clearSavedInfo</a>
|
||||
* <a href="account_confirmPasswordEmail.html" name="account_confirmPasswordEmail">Confirm password recovery using email: account.confirmPasswordEmail</a>
|
||||
* <a href="account_confirmPhone.html" name="account_confirmPhone">Confirm this phone number is associated to this account, obtain phone_code_hash from sendConfirmPhoneCode: account.confirmPhone</a>
|
||||
* <a href="account_getContactSignUpNotification.html" name="account_getContactSignUpNotification">Contact signup notification setting value: account.getContactSignUpNotification</a>
|
||||
* <a href="messages_migrateChat.html" name="messages_migrateChat">Convert chat to supergroup: messages.migrateChat</a>
|
||||
* <a href="messages_createChat.html" name="messages_createChat">Create a chat (not supergroup): messages.createChat</a>
|
||||
* <a href="channels_createChannel.html" name="channels_createChannel">Create channel/supergroup: channels.createChannel</a>
|
||||
* <a href="stickers_createStickerSet.html" name="stickers_createStickerSet">Create stickerset: stickers.createStickerSet</a>
|
||||
* <a href="account_resetAuthorization.html" name="account_resetAuthorization">Delete a certain session: account.resetAuthorization</a>
|
||||
* <a href="account_resetWebAuthorization.html" name="account_resetWebAuthorization">Delete a certain telegram web login authorization: account.resetWebAuthorization</a>
|
||||
* <a href="channels_deleteChannel.html" name="channels_deleteChannel">Delete a channel/supergroup: channels.deleteChannel</a>
|
||||
* <a href="contacts_deleteContact.html" name="contacts_deleteContact">Delete a contact: contacts.deleteContact</a>
|
||||
* <a href="messages_deleteChatUser.html" name="messages_deleteChatUser">Delete a user from a chat (not supergroup): messages.deleteChatUser</a>
|
||||
* <a href="auth_resetAuthorizations.html" name="auth_resetAuthorizations">Delete all logged-in sessions.: auth.resetAuthorizations</a>
|
||||
* <a href="channels_deleteUserHistory.html" name="channels_deleteUserHistory">Delete all messages of a user in a channel/supergroup: channels.deleteUserHistory</a>
|
||||
* <a href="auth_dropTempAuthKeys.html" name="auth_dropTempAuthKeys">Delete all temporary authorization keys except the ones provided: auth.dropTempAuthKeys</a>
|
||||
* <a href="channels_deleteMessages.html" name="channels_deleteMessages">Delete channel/supergroup messages: channels.deleteMessages</a>
|
||||
* <a href="messages_deleteHistory.html" name="messages_deleteHistory">Delete chat history: messages.deleteHistory</a>
|
||||
* <a href="contacts_deleteByPhones.html" name="contacts_deleteByPhones">Delete contacts by phones: contacts.deleteByPhones</a>
|
||||
* <a href="messages_deleteMessages.html" name="messages_deleteMessages">Delete messages: messages.deleteMessages</a>
|
||||
* <a href="contacts_deleteContacts.html" name="contacts_deleteContacts">Delete multiple contacts: contacts.deleteContacts</a>
|
||||
* <a href="photos_deletePhotos.html" name="photos_deletePhotos">Delete profile photos: photos.deletePhotos</a>
|
||||
* <a href="account_deleteSecureValue.html" name="account_deleteSecureValue">Delete secure telegram passport value: account.deleteSecureValue</a>
|
||||
* <a href="channels_deleteHistory.html" name="channels_deleteHistory">Delete the history of a supergroup/channel: channels.deleteHistory</a>
|
||||
* <a href="account_deleteAccount.html" name="account_deleteAccount">Delete this account: account.deleteAccount</a>
|
||||
* <a href="account_updateDeviceLocked.html" name="account_updateDeviceLocked">Disable all notifications for a certain period: account.updateDeviceLocked</a>
|
||||
* <a href="upload_getWebFile.html" name="upload_getWebFile">Download a file through telegram: upload.getWebFile</a>
|
||||
* <a href="messages_editMessage.html" name="messages_editMessage">Edit a message: messages.editMessage</a>
|
||||
* <a href="messages_editInlineBotMessage.html" name="messages_editInlineBotMessage">Edit a sent inline message: messages.editInlineBotMessage</a>
|
||||
* <a href="channels_editAdmin.html" name="channels_editAdmin">Edit admin permissions of a user in a channel/supergroup: channels.editAdmin</a>
|
||||
* <a href="messages_editChatAdmin.html" name="messages_editChatAdmin">Edit admin permissions: messages.editChatAdmin</a>
|
||||
* <a href="messages_editChatAbout.html" name="messages_editChatAbout">Edit chat info: messages.editChatAbout</a>
|
||||
* <a href="messages_editChatDefaultBannedRights.html" name="messages_editChatDefaultBannedRights">Edit default rights of chat: messages.editChatDefaultBannedRights</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>
|
||||
* <a href="messages_editChatTitle.html" name="messages_editChatTitle">Edit the title of a normal chat (not supergroup): messages.editChatTitle</a>
|
||||
* <a href="channels_editTitle.html" name="channels_editTitle">Edit the title of a supergroup/channel: channels.editTitle</a>
|
||||
* <a href="help_editUserInfo.html" name="help_editUserInfo">Edit user info: help.editUserInfo</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="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>
|
||||
* <a href="messages_forwardMessages.html" name="messages_forwardMessages">Forward messages: messages.forwardMessages</a>
|
||||
* <a href="help_getCdnConfig.html" name="help_getCdnConfig">Get CDN configuration: help.getCdnConfig</a>
|
||||
* <a href="messages_getStickerSet.html" name="messages_getStickerSet">Get a stickerset: messages.getStickerSet</a>
|
||||
* <a href="account_getAccountTTL.html" name="account_getAccountTTL">Get account TTL: account.getAccountTTL</a>
|
||||
* <a href="channels_getAdminLog.html" name="channels_getAdminLog">Get admin log of a channel/supergroup: channels.getAdminLog</a>
|
||||
* <a href="messages_getArchivedStickers.html" name="messages_getArchivedStickers">Get all archived stickers: messages.getArchivedStickers</a>
|
||||
* <a href="channels_getLeftChannels.html" name="channels_getLeftChannels">Get all channels you left: channels.getLeftChannels</a>
|
||||
* <a href="messages_getAllChats.html" name="messages_getAllChats">Get all chats (not supergroups or channels): messages.getAllChats</a>
|
||||
* <a href="contacts_getContacts.html" name="contacts_getContacts">Get all contacts: contacts.getContacts</a>
|
||||
* <a href="account_getAuthorizations.html" name="account_getAuthorizations">Get all logged-in authorizations: account.getAuthorizations</a>
|
||||
* <a href="messages_getAllDrafts.html" name="messages_getAllDrafts">Get all message drafts: messages.getAllDrafts</a>
|
||||
* <a href="account_getAllSecureValues.html" name="account_getAllSecureValues">Get all secure telegram passport values: account.getAllSecureValues</a>
|
||||
* <a href="messages_getAllStickers.html" name="messages_getAllStickers">Get all stickerpacks: messages.getAllStickers</a>
|
||||
* <a href="channels_getAdminedPublicChannels.html" name="channels_getAdminedPublicChannels">Get all supergroups/channels where you're admin: channels.getAdminedPublicChannels</a>
|
||||
* <a href="messages_getMessagesViews.html" name="messages_getMessagesViews">Get and increase message views: messages.getMessagesViews</a>
|
||||
* <a href="help_getAppConfig.html" name="help_getAppConfig">Get app config: help.getAppConfig</a>
|
||||
* <a href="langpack_getLanguages.html" name="langpack_getLanguages">Get available languages: langpack.getLanguages</a>
|
||||
* <a href="contacts_getBlocked.html" name="contacts_getBlocked">Get blocked users: contacts.getBlocked</a>
|
||||
* <a href="phone_getCallConfig.html" name="phone_getCallConfig">Get call configuration: phone.getCallConfig</a>
|
||||
* <a href="channels_getMessages.html" name="channels_getMessages">Get channel/supergroup messages: channels.getMessages</a>
|
||||
* <a href="channels_getParticipants.html" name="channels_getParticipants">Get channel/supergroup participants (you should use `$MadelineProto->get_pwr_chat($id)` instead): channels.getParticipants</a>
|
||||
* <a href="messages_getCommonChats.html" name="messages_getCommonChats">Get chats in common with a user: messages.getCommonChats</a>
|
||||
* <a href="contacts_getContactIDs.html" name="contacts_getContactIDs">Get contacts by IDs: contacts.getContactIDs</a>
|
||||
* <a href="help_getDeepLinkInfo.html" name="help_getDeepLinkInfo">Get deep link info: help.getDeepLinkInfo</a>
|
||||
* <a href="messages_getPeerDialogs.html" name="messages_getPeerDialogs">Get dialog info of peers: messages.getPeerDialogs</a>
|
||||
* <a href="messages_getDialogUnreadMarks.html" name="messages_getDialogUnreadMarks">Get dialogs marked as unread manually: messages.getDialogUnreadMarks</a>
|
||||
* <a href="messages_getDocumentByHash.html" name="messages_getDocumentByHash">Get document by SHA256 hash: messages.getDocumentByHash</a>
|
||||
* <a href="messages_getFavedStickers.html" name="messages_getFavedStickers">Get favorite stickers: messages.getFavedStickers</a>
|
||||
* <a href="messages_getFeaturedStickers.html" name="messages_getFeaturedStickers">Get featured stickers: messages.getFeaturedStickers</a>
|
||||
* <a href="messages_getInlineGameHighScores.html" name="messages_getInlineGameHighScores">Get high scores of a game sent in an inline message: messages.getInlineGameHighScores</a>
|
||||
* <a href="messages_getGameHighScores.html" name="messages_getGameHighScores">Get high scores of a game: messages.getGameHighScores</a>
|
||||
* <a href="channels_getParticipant.html" name="channels_getParticipant">Get info about a certain channel/supergroup participant: channels.getParticipant</a>
|
||||
* <a href="help_getAppUpdate.html" name="help_getAppUpdate">Get info about app updates: help.getAppUpdate</a>
|
||||
* <a href="messages_getChats.html" name="messages_getChats">Get info about chats: messages.getChats</a>
|
||||
* <a href="channels_getChannels.html" name="channels_getChannels">Get info about multiple channels/supergroups: channels.getChannels</a>
|
||||
* <a href="users_getUsers.html" name="users_getUsers">Get info about users: users.getUsers</a>
|
||||
* <a href="help_getSupport.html" name="help_getSupport">Get info of support user: help.getSupport</a>
|
||||
* <a href="help_getProxyData.html" name="help_getProxyData">Get information about the current proxy: help.getProxyData</a>
|
||||
* <a href="help_getInviteText.html" name="help_getInviteText">Get invitation text: help.getInviteText</a>
|
||||
* <a href="langpack_getStrings.html" name="langpack_getStrings">Get language pack strings: langpack.getStrings</a>
|
||||
* <a href="langpack_getDifference.html" name="langpack_getDifference">Get language pack updates: langpack.getDifference</a>
|
||||
* <a href="langpack_getLangPack.html" name="langpack_getLangPack">Get language pack: langpack.getLangPack</a>
|
||||
* <a href="langpack_getLanguage.html" name="langpack_getLanguage">Get language: langpack.getLanguage</a>
|
||||
* <a href="messages_getMaskStickers.html" name="messages_getMaskStickers">Get masks: messages.getMaskStickers</a>
|
||||
* <a href="messages_getSplitRanges.html" name="messages_getSplitRanges">Get message ranges to fetch: messages.getSplitRanges</a>
|
||||
* <a href="messages_getMessages.html" name="messages_getMessages">Get messages: messages.getMessages</a>
|
||||
* <a href="contacts_getTopPeers.html" name="contacts_getTopPeers">Get most used chats: contacts.getTopPeers</a>
|
||||
* <a href="help_getNearestDc.html" name="help_getNearestDc">Get nearest datacenter: help.getNearestDc</a>
|
||||
* <a href="account_getNotifyExceptions.html" name="account_getNotifyExceptions">Get notification exceptions: account.getNotifyExceptions</a>
|
||||
* <a href="account_getNotifySettings.html" name="account_getNotifySettings">Get notification settings: account.getNotifySettings</a>
|
||||
* <a href="contacts_getStatuses.html" name="contacts_getStatuses">Get online status of all users: contacts.getStatuses</a>
|
||||
* <a href="messages_getOnlines.html" name="messages_getOnlines">Get online users: messages.getOnlines</a>
|
||||
* <a href="help_getPassportConfig.html" name="help_getPassportConfig">Get passport config: help.getPassportConfig</a>
|
||||
* <a href="payments_getPaymentForm.html" name="payments_getPaymentForm">Get payment form: payments.getPaymentForm</a>
|
||||
* <a href="payments_getPaymentReceipt.html" name="payments_getPaymentReceipt">Get payment receipt: payments.getPaymentReceipt</a>
|
||||
* <a href="messages_getPinnedDialogs.html" name="messages_getPinnedDialogs">Get pinned dialogs: messages.getPinnedDialogs</a>
|
||||
* <a href="messages_getPollResults.html" name="messages_getPollResults">Get poll results: messages.getPollResults</a>
|
||||
* <a href="messages_getHistory.html" name="messages_getHistory">Get previous messages of a group: messages.getHistory</a>
|
||||
* <a href="account_getPrivacy.html" name="account_getPrivacy">Get privacy settings: account.getPrivacy</a>
|
||||
* <a href="messages_getRecentLocations.html" name="messages_getRecentLocations">Get recent locations: messages.getRecentLocations</a>
|
||||
* <a href="messages_getRecentStickers.html" name="messages_getRecentStickers">Get recent stickers: messages.getRecentStickers</a>
|
||||
* <a href="help_getRecentMeUrls.html" name="help_getRecentMeUrls">Get recent t.me URLs: help.getRecentMeUrls</a>
|
||||
* <a href="contacts_getSaved.html" name="contacts_getSaved">Get saved contacts: contacts.getSaved</a>
|
||||
* <a href="messages_getSavedGifs.html" name="messages_getSavedGifs">Get saved gifs: messages.getSavedGifs</a>
|
||||
* <a href="payments_getSavedInfo.html" name="payments_getSavedInfo">Get saved payments info: payments.getSavedInfo</a>
|
||||
* <a href="account_getSecureValue.html" name="account_getSecureValue">Get secure value for telegram passport: account.getSecureValue</a>
|
||||
* <a href="help_getConfig.html" name="help_getConfig">Get server configuration: help.getConfig</a>
|
||||
* <a href="messages_getStatsURL.html" name="messages_getStatsURL">Get stats URL: messages.getStatsURL</a>
|
||||
* <a href="messages_getAttachedStickers.html" name="messages_getAttachedStickers">Get stickers attachable to images: messages.getAttachedStickers</a>
|
||||
* <a href="messages_getStickers.html" name="messages_getStickers">Get stickers: messages.getStickers</a>
|
||||
* <a href="help_getSupportName.html" name="help_getSupportName">Get support name: help.getSupportName</a>
|
||||
* <a href="account_getWebAuthorizations.html" name="account_getWebAuthorizations">Get telegram web login authorizations: account.getWebAuthorizations</a>
|
||||
* <a href="account_getTmpPassword.html" name="account_getTmpPassword">Get temporary password for buying products through bots: account.getTmpPassword</a>
|
||||
* <a href="messages_getBotCallbackAnswer.html" name="messages_getBotCallbackAnswer">Get the callback answer of a bot (after clicking a button): messages.getBotCallbackAnswer</a>
|
||||
* <a href="help_getAppChangelog.html" name="help_getAppChangelog">Get the changelog of this app: help.getAppChangelog</a>
|
||||
* <a href="account_getPassword.html" name="account_getPassword">Get the current password: account.getPassword</a>
|
||||
* <a href="channels_exportMessageLink.html" name="channels_exportMessageLink">Get the link of a message in a channel: channels.exportMessageLink</a>
|
||||
* <a href="photos_getUserPhotos.html" name="photos_getUserPhotos">Get the profile photos of a user: photos.getUserPhotos</a>
|
||||
* <a href="messages_getPeerSettings.html" name="messages_getPeerSettings">Get the settings of apeer: messages.getPeerSettings</a>
|
||||
* <a href="messages_getUnreadMentions.html" name="messages_getUnreadMentions">Get unread mentions: messages.getUnreadMentions</a>
|
||||
* <a href="help_getTermsOfServiceUpdate.html" name="help_getTermsOfServiceUpdate">Get updated TOS: help.getTermsOfServiceUpdate</a>
|
||||
* <a href="help_getUserInfo.html" name="help_getUserInfo">Get user info: help.getUserInfo</a>
|
||||
* <a href="account_getWallPaper.html" name="account_getWallPaper">Get wallpaper info: account.getWallPaper</a>
|
||||
* <a href="messages_getWebPage.html" name="messages_getWebPage">Get webpage preview: messages.getWebPage</a>
|
||||
* <a href="messages_getWebPagePreview.html" name="messages_getWebPagePreview">Get webpage preview: messages.getWebPagePreview</a>
|
||||
* <a href="messages_getDialogs.html" name="messages_getDialogs">Gets list of chats: you should use $MadelineProto->get_dialogs() instead: https://docs.madelineproto.xyz/docs/DIALOGS.html: messages.getDialogs</a>
|
||||
* <a href="messages_searchGlobal.html" name="messages_searchGlobal">Global message search: messages.searchGlobal</a>
|
||||
* <a href="messages_hideReportSpam.html" name="messages_hideReportSpam">Hide report spam popup: messages.hideReportSpam</a>
|
||||
* <a href="messages_importChatInvite.html" name="messages_importChatInvite">Import chat invite: messages.importChatInvite</a>
|
||||
* <a href="initConnection.html" name="initConnection">Initializes connection and save information on the user's device and application.: initConnection</a>
|
||||
* <a href="account_installWallPaper.html" name="account_installWallPaper">Install wallpaper: account.installWallPaper</a>
|
||||
* <a href="auth_cancelCode.html" name="auth_cancelCode">Invalidate sent phone code: auth.cancelCode</a>
|
||||
* <a href="invokeWithTakeout.html" name="invokeWithTakeout">Invoke method from takeout session: invokeWithTakeout</a>
|
||||
* <a href="invokeWithLayer.html" name="invokeWithLayer">Invoke this method with layer X: invokeWithLayer</a>
|
||||
* <a href="invokeWithMessagesRange.html" name="invokeWithMessagesRange">Invoke with messages range: invokeWithMessagesRange</a>
|
||||
* <a href="invokeWithoutUpdates.html" name="invokeWithoutUpdates">Invoke with method without returning updates in the socket: invokeWithoutUpdates</a>
|
||||
* <a href="invokeAfterMsg.html" name="invokeAfterMsg">Invokes a query after successfull completion of one of the previous queries.: invokeAfterMsg</a>
|
||||
* <a href="channels_joinChannel.html" name="channels_joinChannel">Join a channel/supergroup: channels.joinChannel</a>
|
||||
* <a href="channels_editBanned.html" name="channels_editBanned">Kick or ban a user from a channel/supergroup: channels.editBanned</a>
|
||||
* <a href="channels_leaveChannel.html" name="channels_leaveChannel">Leave a channel/supergroup: channels.leaveChannel</a>
|
||||
* <a href="help_saveAppLog.html" name="help_saveAppLog">Log data for developer of this app: help.saveAppLog</a>
|
||||
* <a href="channels_readHistory.html" name="channels_readHistory">Mark channel/supergroup history as read: channels.readHistory</a>
|
||||
* <a href="channels_readMessageContents.html" name="channels_readMessageContents">Mark channel/supergroup messages as read: channels.readMessageContents</a>
|
||||
* <a href="messages_markDialogUnread.html" name="messages_markDialogUnread">Mark dialog as unread : messages.markDialogUnread</a>
|
||||
* <a href="messages_readMentions.html" name="messages_readMentions">Mark mentions as read: messages.readMentions</a>
|
||||
* <a href="messages_readMessageContents.html" name="messages_readMessageContents">Mark message as read: messages.readMessageContents</a>
|
||||
* <a href="messages_readEncryptedHistory.html" name="messages_readEncryptedHistory">Mark messages as read in secret chats: messages.readEncryptedHistory</a>
|
||||
* <a href="messages_readHistory.html" name="messages_readHistory">Mark messages as read: messages.readHistory</a>
|
||||
* <a href="messages_receivedMessages.html" name="messages_receivedMessages">Mark messages as read: messages.receivedMessages</a>
|
||||
* <a href="messages_readFeaturedStickers.html" name="messages_readFeaturedStickers">Mark new featured stickers as read: messages.readFeaturedStickers</a>
|
||||
* <a href="phone_receivedCall.html" name="phone_receivedCall">Notify server that you received a call (server will refuse all incoming calls until the current call is over): phone.receivedCall</a>
|
||||
* <a href="messages_toggleDialogPin.html" name="messages_toggleDialogPin">Pin or unpin dialog: messages.toggleDialogPin</a>
|
||||
* <a href="account_registerDevice.html" name="account_registerDevice">Register device for push notifications: account.registerDevice</a>
|
||||
* <a href="messages_uninstallStickerSet.html" name="messages_uninstallStickerSet">Remove a sticker set: messages.uninstallStickerSet</a>
|
||||
* <a href="stickers_removeStickerFromSet.html" name="stickers_removeStickerFromSet">Remove sticker from stickerset: stickers.removeStickerFromSet</a>
|
||||
* <a href="messages_reorderPinnedDialogs.html" name="messages_reorderPinnedDialogs">Reorder pinned dialogs: messages.reorderPinnedDialogs</a>
|
||||
* <a href="messages_reorderStickerSets.html" name="messages_reorderStickerSets">Reorder sticker sets: messages.reorderStickerSets</a>
|
||||
* <a href="channels_reportSpam.html" name="channels_reportSpam">Report a message in a supergroup/channel for spam: channels.reportSpam</a>
|
||||
* <a href="messages_report.html" name="messages_report">Report a message: messages.report</a>
|
||||
* <a href="messages_reportSpam.html" name="messages_reportSpam">Report a peer for spam: messages.reportSpam</a>
|
||||
* <a href="messages_reportEncryptedSpam.html" name="messages_reportEncryptedSpam">Report for spam a secret chat: messages.reportEncryptedSpam</a>
|
||||
* <a href="account_reportPeer.html" name="account_reportPeer">Report for spam: account.reportPeer</a>
|
||||
* <a href="account_resendPasswordEmail.html" name="account_resendPasswordEmail">Resend password recovery email: account.resendPasswordEmail</a>
|
||||
* <a href="auth_resendCode.html" name="auth_resendCode">Resend the SMS verification code: auth.resendCode</a>
|
||||
* <a href="account_resetNotifySettings.html" name="account_resetNotifySettings">Reset all notification settings: account.resetNotifySettings</a>
|
||||
* <a href="account_resetWebAuthorizations.html" name="account_resetWebAuthorizations">Reset all telegram web login authorizations: account.resetWebAuthorizations</a>
|
||||
* <a href="contacts_resetSaved.html" name="contacts_resetSaved">Reset saved contacts: contacts.resetSaved</a>
|
||||
* <a href="contacts_resetTopPeerRating.html" name="contacts_resetTopPeerRating">Reset top peer rating for a certain category/peer: contacts.resetTopPeerRating</a>
|
||||
* <a href="account_resetWallPapers.html" name="account_resetWallPapers">Reset wallpapers: account.resetWallPapers</a>
|
||||
* <a href="invokeAfterMsgs.html" name="invokeAfterMsgs">Result type returned by a current query.: invokeAfterMsgs</a>
|
||||
* <a href="account_getWallPapers.html" name="account_getWallPapers">Returns a list of available wallpapers.: account.getWallPapers</a>
|
||||
* <a href="messages_saveGif.html" name="messages_saveGif">Save a GIF: messages.saveGif</a>
|
||||
* <a href="messages_saveDraft.html" name="messages_saveDraft">Save a message draft: messages.saveDraft</a>
|
||||
* <a href="phone_saveCallDebug.html" name="phone_saveCallDebug">Save call debugging info: phone.saveCallDebug</a>
|
||||
* <a href="account_saveSecureValue.html" name="account_saveSecureValue">Save telegram passport secure value: account.saveSecureValue</a>
|
||||
* <a href="account_saveWallPaper.html" name="account_saveWallPaper">Save wallpaper: account.saveWallPaper</a>
|
||||
* <a href="contacts_search.html" name="contacts_search">Search contacts: contacts.search</a>
|
||||
* <a href="messages_searchGifs.html" name="messages_searchGifs">Search gifs: messages.searchGifs</a>
|
||||
* <a href="messages_search.html" name="messages_search">Search peers or messages: messages.search</a>
|
||||
* <a href="bots_sendCustomRequest.html" name="bots_sendCustomRequest">Send a custom request to the bot API: bots.sendCustomRequest</a>
|
||||
* <a href="messages_sendEncryptedFile.html" name="messages_sendEncryptedFile">Send a file to a secret chat: messages.sendEncryptedFile</a>
|
||||
* <a href="messages_sendMedia.html" name="messages_sendMedia">Send a media: messages.sendMedia</a>
|
||||
* <a href="messages_sendMessage.html" name="messages_sendMessage">Send a message: messages.sendMessage</a>
|
||||
* <a href="messages_sendEncryptedService.html" name="messages_sendEncryptedService">Send a service message to a secret chat: messages.sendEncryptedService</a>
|
||||
* <a href="messages_sendMultiMedia.html" name="messages_sendMultiMedia">Send an album: messages.sendMultiMedia</a>
|
||||
* <a href="auth_requestPasswordRecovery.html" name="auth_requestPasswordRecovery">Send an email to recover the 2FA password: auth.requestPasswordRecovery</a>
|
||||
* <a href="account_sendConfirmPhoneCode.html" name="account_sendConfirmPhoneCode">Send confirmation phone code: account.sendConfirmPhoneCode</a>
|
||||
* <a href="account_sendVerifyEmailCode.html" name="account_sendVerifyEmailCode">Send email verification code: account.sendVerifyEmailCode</a>
|
||||
* <a href="messages_sendInlineBotResult.html" name="messages_sendInlineBotResult">Send inline bot result obtained with messages.getInlineBotResults to the chat: messages.sendInlineBotResult</a>
|
||||
* <a href="messages_sendEncrypted.html" name="messages_sendEncrypted">Send message to secret chat: messages.sendEncrypted</a>
|
||||
* <a href="account_sendVerifyPhoneCode.html" name="account_sendVerifyPhoneCode">Send phone verification code: account.sendVerifyPhoneCode</a>
|
||||
* <a href="messages_sendScreenshotNotification.html" name="messages_sendScreenshotNotification">Send screenshot notification: messages.sendScreenshotNotification</a>
|
||||
* <a href="messages_setEncryptedTyping.html" name="messages_setEncryptedTyping">Send typing notification to secret chat: messages.setEncryptedTyping</a>
|
||||
* <a href="messages_sendVote.html" name="messages_sendVote">Send vote: messages.sendVote</a>
|
||||
* <a href="bots_answerWebhookJSONQuery.html" name="bots_answerWebhookJSONQuery">Send webhook request via bot API: bots.answerWebhookJSONQuery</a>
|
||||
* <a href="account_setAccountTTL.html" name="account_setAccountTTL">Set account TTL: account.setAccountTTL</a>
|
||||
* <a href="account_setContactSignUpNotification.html" name="account_setContactSignUpNotification">Set contact sign up notification: account.setContactSignUpNotification</a>
|
||||
* <a href="phone_setCallRating.html" name="phone_setCallRating">Set phone call rating: phone.setCallRating</a>
|
||||
* <a href="account_setPrivacy.html" name="account_setPrivacy">Set privacy settings: account.setPrivacy</a>
|
||||
* <a href="users_setSecureValueErrors.html" name="users_setSecureValueErrors">Set secure value error for telegram passport: users.setSecureValueErrors</a>
|
||||
* <a href="messages_setInlineGameScore.html" name="messages_setInlineGameScore">Set the game score of an inline message: messages.setInlineGameScore</a>
|
||||
* <a href="messages_setGameScore.html" name="messages_setGameScore">Set the game score: messages.setGameScore</a>
|
||||
* <a href="channels_setStickers.html" name="channels_setStickers">Set the supergroup/channel stickerpack: channels.setStickers</a>
|
||||
* <a href="help_setBotUpdatesStatus.html" name="help_setBotUpdatesStatus">Set the update status of webhook: help.setBotUpdatesStatus</a>
|
||||
* <a href="messages_startBot.html" name="messages_startBot">Start a bot: messages.startBot</a>
|
||||
* <a href="account_initTakeoutSession.html" name="account_initTakeoutSession">Start account exporting session: account.initTakeoutSession</a>
|
||||
* <a href="account_unregisterDevice.html" name="account_unregisterDevice">Stop sending PUSH notifications to app: account.unregisterDevice</a>
|
||||
* <a href="channels_toggleSignatures.html" name="channels_toggleSignatures">Toggle channel signatures: channels.toggleSignatures</a>
|
||||
* <a href="contacts_toggleTopPeers.html" name="contacts_toggleTopPeers">Toggle top peers: contacts.toggleTopPeers</a>
|
||||
* <a href="contacts_unblock.html" name="contacts_unblock">Unblock a user: contacts.unblock</a>
|
||||
* <a href="account_updateStatus.html" name="account_updateStatus">Update online status: account.updateStatus</a>
|
||||
* <a href="messages_updatePinnedMessage.html" name="messages_updatePinnedMessage">Update pinned message (private chat only): messages.updatePinnedMessage</a>
|
||||
* <a href="account_updateProfile.html" name="account_updateProfile">Update profile info: account.updateProfile</a>
|
||||
* <a href="channels_updateUsername.html" name="channels_updateUsername">Update the username of a supergroup/channel: channels.updateUsername</a>
|
||||
* <a href="account_updateUsername.html" name="account_updateUsername">Update this user's username: account.updateUsername</a>
|
||||
* <a href="messages_uploadMedia.html" name="messages_uploadMedia">Upload a file without sending it to anyone: messages.uploadMedia</a>
|
||||
* <a href="messages_uploadEncryptedFile.html" name="messages_uploadEncryptedFile">Upload a secret chat file without sending it to anyone: messages.uploadEncryptedFile</a>
|
||||
* <a href="photos_uploadProfilePhoto.html" name="photos_uploadProfilePhoto">Upload profile photo: photos.uploadProfilePhoto</a>
|
||||
* <a href="account_uploadWallPaper.html" name="account_uploadWallPaper">Upload wallpaper: account.uploadWallPaper</a>
|
||||
* <a href="auth_recoverPassword.html" name="auth_recoverPassword">Use the code that was emailed to you after running $MadelineProto->auth->requestPasswordRecovery to login to your account: auth.recoverPassword</a>
|
||||
* <a href="payments_validateRequestedInfo.html" name="payments_validateRequestedInfo">Validate requested payment info: payments.validateRequestedInfo</a>
|
||||
* <a href="account_verifyEmail.html" name="account_verifyEmail">Verify email address: account.verifyEmail</a>
|
||||
* <a href="account_verifyPhone.html" name="account_verifyPhone">Verify phone number: account.verifyPhone</a>
|
||||
* [Peers](https://docs.madelineproto.xyz/docs/USING_METHODS.html#peers)
|
||||
* [Files](https://docs.madelineproto.xyz/docs/FILES.html)
|
||||
* [Secret chats](https://docs.madelineproto.xyz/docs/USING_METHODS.html#secret-chats)
|
||||
* [Entities (Markdown & HTML)](https://docs.madelineproto.xyz/docs/USING_METHODS.html#entities)
|
||||
* [reply_markup (keyboards & inline keyboards)](https://docs.madelineproto.xyz/docs/USING_METHODS.html#reply_markup)
|
||||
* [bot API objects](https://docs.madelineproto.xyz/docs/USING_METHODS.html#bot-api-objects)
|
||||
* [No result](https://docs.madelineproto.xyz/docs/USING_METHODS.html#no-result)
|
||||
* [Queues](https://docs.madelineproto.xyz/docs/USING_METHODS.html#queues)
|
||||
* [Contributing](https://docs.madelineproto.xyz/docs/CONTRIB.html)
|
||||
* [Translation](https://docs.madelineproto.xyz/docs/CONTRIB.html#translation)
|
||||
* [Contribution guide](https://docs.madelineproto.xyz/docs/CONTRIB.html#contribution-guide)
|
||||
|
15
old_docs/API_docs_v91/README.md
Normal file
15
old_docs/API_docs_v91/README.md
Normal 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/)
|
2049
old_docs/API_docs_v91/constructors/README.md
Normal file
2049
old_docs/API_docs_v91/constructors/README.md
Normal file
File diff suppressed because it is too large
Load Diff
46
old_docs/API_docs_v91/constructors/accessPointRule.md
Normal file
46
old_docs/API_docs_v91/constructors/accessPointRule.md
Normal 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}}
|
||||
|
||||
```
|
||||
|
||||
|
44
old_docs/API_docs_v91/constructors/accountDaysTTL.md
Normal file
44
old_docs/API_docs_v91/constructors/accountDaysTTL.md
Normal 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}
|
||||
|
||||
```
|
||||
|
||||
|
@ -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'}
|
||||
|
||||
```
|
||||
|
||||
|
44
old_docs/API_docs_v91/constructors/account_authorizations.md
Normal file
44
old_docs/API_docs_v91/constructors/account_authorizations.md
Normal 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}}
|
||||
|
||||
```
|
||||
|
||||
|
54
old_docs/API_docs_v91/constructors/account_password.md
Normal file
54
old_docs/API_docs_v91/constructors/account_password.md
Normal 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'}
|
||||
|
||||
```
|
||||
|
||||
|
@ -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}
|
||||
|
||||
```
|
||||
|
||||
|
@ -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}
|
||||
|
||||
```
|
||||
|
||||
|
45
old_docs/API_docs_v91/constructors/account_privacyRules.md
Normal file
45
old_docs/API_docs_v91/constructors/account_privacyRules.md
Normal 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}}
|
||||
|
||||
```
|
||||
|
||||
|
45
old_docs/API_docs_v91/constructors/account_sentEmailCode.md
Normal file
45
old_docs/API_docs_v91/constructors/account_sentEmailCode.md
Normal 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}
|
||||
|
||||
```
|
||||
|
||||
|
44
old_docs/API_docs_v91/constructors/account_takeout.md
Normal file
44
old_docs/API_docs_v91/constructors/account_takeout.md
Normal 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}
|
||||
|
||||
```
|
||||
|
||||
|
45
old_docs/API_docs_v91/constructors/account_tmpPassword.md
Normal file
45
old_docs/API_docs_v91/constructors/account_tmpPassword.md
Normal 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}
|
||||
|
||||
```
|
||||
|
||||
|
@ -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}}
|
||||
|
||||
```
|
||||
|
||||
|
45
old_docs/API_docs_v91/constructors/auth_authorization.md
Normal file
45
old_docs/API_docs_v91/constructors/auth_authorization.md
Normal 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}
|
||||
|
||||
```
|
||||
|
||||
|
44
old_docs/API_docs_v91/constructors/auth_checkedPhone.md
Normal file
44
old_docs/API_docs_v91/constructors/auth_checkedPhone.md
Normal 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}
|
||||
|
||||
```
|
||||
|
||||
|
39
old_docs/API_docs_v91/constructors/auth_codeTypeCall.md
Normal file
39
old_docs/API_docs_v91/constructors/auth_codeTypeCall.md
Normal 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'}
|
||||
|
||||
```
|
||||
|
||||
|
39
old_docs/API_docs_v91/constructors/auth_codeTypeFlashCall.md
Normal file
39
old_docs/API_docs_v91/constructors/auth_codeTypeFlashCall.md
Normal 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'}
|
||||
|
||||
```
|
||||
|
||||
|
39
old_docs/API_docs_v91/constructors/auth_codeTypeSms.md
Normal file
39
old_docs/API_docs_v91/constructors/auth_codeTypeSms.md
Normal 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'}
|
||||
|
||||
```
|
||||
|
||||
|
@ -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'}
|
||||
|
||||
```
|
||||
|
||||
|
44
old_docs/API_docs_v91/constructors/auth_passwordRecovery.md
Normal file
44
old_docs/API_docs_v91/constructors/auth_passwordRecovery.md
Normal 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'}
|
||||
|
||||
```
|
||||
|
||||
|
49
old_docs/API_docs_v91/constructors/auth_sentCode.md
Normal file
49
old_docs/API_docs_v91/constructors/auth_sentCode.md
Normal 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}
|
||||
|
||||
```
|
||||
|
||||
|
44
old_docs/API_docs_v91/constructors/auth_sentCodeTypeApp.md
Normal file
44
old_docs/API_docs_v91/constructors/auth_sentCodeTypeApp.md
Normal 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}
|
||||
|
||||
```
|
||||
|
||||
|
44
old_docs/API_docs_v91/constructors/auth_sentCodeTypeCall.md
Normal file
44
old_docs/API_docs_v91/constructors/auth_sentCodeTypeCall.md
Normal 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}
|
||||
|
||||
```
|
||||
|
||||
|
@ -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'}
|
||||
|
||||
```
|
||||
|
||||
|
44
old_docs/API_docs_v91/constructors/auth_sentCodeTypeSms.md
Normal file
44
old_docs/API_docs_v91/constructors/auth_sentCodeTypeSms.md
Normal 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}
|
||||
|
||||
```
|
||||
|
||||
|
58
old_docs/API_docs_v91/constructors/authorization.md
Normal file
58
old_docs/API_docs_v91/constructors/authorization.md
Normal 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'}
|
||||
|
||||
```
|
||||
|
||||
|
9
old_docs/API_docs_v91/constructors/boolFalse.md
Normal file
9
old_docs/API_docs_v91/constructors/boolFalse.md
Normal 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`.
|
9
old_docs/API_docs_v91/constructors/boolTrue.md
Normal file
9
old_docs/API_docs_v91/constructors/boolTrue.md
Normal 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`.
|
45
old_docs/API_docs_v91/constructors/botCommand.md
Normal file
45
old_docs/API_docs_v91/constructors/botCommand.md
Normal 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'}
|
||||
|
||||
```
|
||||
|
||||
|
46
old_docs/API_docs_v91/constructors/botInfo.md
Normal file
46
old_docs/API_docs_v91/constructors/botInfo.md
Normal 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}}
|
||||
|
||||
```
|
||||
|
||||
|
50
old_docs/API_docs_v91/constructors/botInlineMediaResult.md
Normal file
50
old_docs/API_docs_v91/constructors/botInlineMediaResult.md
Normal 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}
|
||||
|
||||
```
|
||||
|
||||
|
@ -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.
|
||||
|
||||
|
@ -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.
|
||||
|
||||
|
@ -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.
|
||||
|
||||
|
@ -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.
|
||||
|
||||
|
53
old_docs/API_docs_v91/constructors/botInlineMessageText.md
Normal file
53
old_docs/API_docs_v91/constructors/botInlineMessageText.md
Normal 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.
|
||||
|
||||
|
51
old_docs/API_docs_v91/constructors/botInlineResult.md
Normal file
51
old_docs/API_docs_v91/constructors/botInlineResult.md
Normal 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}
|
||||
|
||||
```
|
||||
|
||||
|
44
old_docs/API_docs_v91/constructors/cdnConfig.md
Normal file
44
old_docs/API_docs_v91/constructors/cdnConfig.md
Normal 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}}
|
||||
|
||||
```
|
||||
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user