Bugfixes
This commit is contained in:
parent
6e50c16df2
commit
54f69ece92
44
docs/API_docs/constructors/cdnFileHash.md
Normal file
44
docs/API_docs/constructors/cdnFileHash.md
Normal file
@ -0,0 +1,44 @@
|
||||
---
|
||||
title: cdnFileHash
|
||||
description: cdnFileHash attributes, type and example
|
||||
---
|
||||
## Constructor: cdnFileHash
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
### Attributes:
|
||||
|
||||
| Name | Type | Required |
|
||||
|----------|:-------------:|---------:|
|
||||
|offset|[int](../types/int.md) | Yes|
|
||||
|limit|[int](../types/int.md) | Yes|
|
||||
|hash|[bytes](../types/bytes.md) | Yes|
|
||||
|
||||
|
||||
|
||||
### Type: [CdnFileHash](../types/CdnFileHash.md)
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
```
|
||||
$cdnFileHash = ['_' => 'cdnFileHash', 'offset' => int, 'limit' => int, 'hash' => 'bytes'];
|
||||
```
|
||||
|
||||
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||
|
||||
```
|
||||
{"_": "cdnFileHash", "offset": int, "limit": int, "hash": "bytes"}
|
||||
```
|
||||
|
||||
|
||||
Or, if you're into Lua:
|
||||
|
||||
|
||||
```
|
||||
cdnFileHash={_='cdnFileHash', offset=int, limit=int, hash='bytes'}
|
||||
|
||||
```
|
||||
|
||||
|
@ -13,6 +13,7 @@ description: channel attributes, type and example
|
||||
|----------|:-------------:|---------:|
|
||||
|creator|[Bool](../types/Bool.md) | Optional|
|
||||
|left|[Bool](../types/Bool.md) | Optional|
|
||||
|editor|[Bool](../types/Bool.md) | Optional|
|
||||
|broadcast|[Bool](../types/Bool.md) | Optional|
|
||||
|verified|[Bool](../types/Bool.md) | Optional|
|
||||
|megagroup|[Bool](../types/Bool.md) | Optional|
|
||||
@ -39,13 +40,13 @@ description: channel attributes, type and example
|
||||
### Example:
|
||||
|
||||
```
|
||||
$channel = ['_' => 'channel', 'creator' => Bool, 'left' => 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];
|
||||
$channel = ['_' => 'channel', 'creator' => Bool, 'left' => Bool, 'editor' => Bool, 'broadcast' => Bool, 'verified' => Bool, 'megagroup' => Bool, 'restricted' => Bool, 'democracy' => Bool, 'signatures' => Bool, 'min' => Bool, 'id' => int, 'access_hash' => long, 'title' => 'string', 'username' => 'string', 'photo' => ChatPhoto, 'date' => int, 'version' => int, 'restriction_reason' => 'string', 'admin_rights' => ChannelAdminRights, 'banned_rights' => ChannelBannedRights];
|
||||
```
|
||||
|
||||
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||
|
||||
```
|
||||
{"_": "channel", "creator": Bool, "left": Bool, "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}
|
||||
{"_": "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}
|
||||
```
|
||||
|
||||
|
||||
@ -53,7 +54,7 @@ Or, if you're into Lua:
|
||||
|
||||
|
||||
```
|
||||
channel={_='channel', creator=Bool, left=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}
|
||||
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}
|
||||
|
||||
```
|
||||
|
||||
|
@ -12,6 +12,7 @@ description: contacts_importedContacts attributes, type and example
|
||||
| Name | Type | Required |
|
||||
|----------|:-------------:|---------:|
|
||||
|imported|Array of [ImportedContact](../types/ImportedContact.md) | Yes|
|
||||
|popular\_invites|Array of [PopularContact](../types/PopularContact.md) | Yes|
|
||||
|retry\_contacts|Array of [long](../types/long.md) | Yes|
|
||||
|users|Array of [User](../types/User.md) | Yes|
|
||||
|
||||
@ -23,13 +24,13 @@ description: contacts_importedContacts attributes, type and example
|
||||
### Example:
|
||||
|
||||
```
|
||||
$contacts_importedContacts = ['_' => 'contacts.importedContacts', 'imported' => [ImportedContact], 'retry_contacts' => [long], 'users' => [User]];
|
||||
$contacts_importedContacts = ['_' => 'contacts.importedContacts', 'imported' => [ImportedContact], 'popular_invites' => [PopularContact], 'retry_contacts' => [long], 'users' => [User]];
|
||||
```
|
||||
|
||||
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||
|
||||
```
|
||||
{"_": "contacts.importedContacts", "imported": [ImportedContact], "retry_contacts": [long], "users": [User]}
|
||||
{"_": "contacts.importedContacts", "imported": [ImportedContact], "popular_invites": [PopularContact], "retry_contacts": [long], "users": [User]}
|
||||
```
|
||||
|
||||
|
||||
@ -37,7 +38,7 @@ Or, if you're into Lua:
|
||||
|
||||
|
||||
```
|
||||
contacts_importedContacts={_='contacts.importedContacts', imported={ImportedContact}, retry_contacts={long}, users={User}}
|
||||
contacts_importedContacts={_='contacts.importedContacts', imported={ImportedContact}, popular_invites={PopularContact}, retry_contacts={long}, users={User}}
|
||||
|
||||
```
|
||||
|
||||
|
@ -94,11 +94,14 @@ description: List of constructors
|
||||
***
|
||||
<br><br>[$cdnConfig](../constructors/cdnConfig.md) = \['public_keys' => \[[CdnPublicKey](../types/CdnPublicKey.md)\], \];<a name="cdnConfig"></a>
|
||||
|
||||
***
|
||||
<br><br>[$cdnFileHash](../constructors/cdnFileHash.md) = \['offset' => [int](../types/int.md), 'limit' => [int](../types/int.md), 'hash' => [bytes](../types/bytes.md), \];<a name="cdnFileHash"></a>
|
||||
|
||||
***
|
||||
<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), '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), \];<a name="channel"></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), \];<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>
|
||||
@ -289,7 +292,7 @@ description: List of constructors
|
||||
|
||||
[$contacts\_found](../constructors/contacts_found.md) = \['results' => \[[Peer](../types/Peer.md)\], 'chats' => \[[Chat](../types/Chat.md)\], 'users' => \[[User](../types/User.md)\], \];<a name="contacts_found"></a>
|
||||
|
||||
[$contacts\_importedContacts](../constructors/contacts_importedContacts.md) = \['imported' => \[[ImportedContact](../types/ImportedContact.md)\], 'retry_contacts' => \[[long](../types/long.md)\], 'users' => \[[User](../types/User.md)\], \];<a name="contacts_importedContacts"></a>
|
||||
[$contacts\_importedContacts](../constructors/contacts_importedContacts.md) = \['imported' => \[[ImportedContact](../types/ImportedContact.md)\], 'popular_invites' => \[[PopularContact](../types/PopularContact.md)\], 'retry_contacts' => \[[long](../types/long.md)\], 'users' => \[[User](../types/User.md)\], \];<a name="contacts_importedContacts"></a>
|
||||
|
||||
[$contacts\_link](../constructors/contacts_link.md) = \['my_link' => [ContactLink](../types/ContactLink.md), 'foreign_link' => [ContactLink](../types/ContactLink.md), 'user' => [User](../types/User.md), \];<a name="contacts_link"></a>
|
||||
|
||||
@ -630,10 +633,10 @@ description: List of constructors
|
||||
<br><br>[$inputMediaContact](../constructors/inputMediaContact.md) = \['phone_number' => [string](../types/string.md), 'first_name' => [string](../types/string.md), 'last_name' => [string](../types/string.md), \];<a name="inputMediaContact"></a>
|
||||
|
||||
***
|
||||
<br><br>[$inputMediaDocument](../constructors/inputMediaDocument.md) = \['id' => [InputDocument](../types/InputDocument.md), 'caption' => [string](../types/string.md), \];<a name="inputMediaDocument"></a>
|
||||
<br><br>[$inputMediaDocument](../constructors/inputMediaDocument.md) = \['id' => [InputDocument](../types/InputDocument.md), 'caption' => [string](../types/string.md), 'ttl_seconds' => [int](../types/int.md), \];<a name="inputMediaDocument"></a>
|
||||
|
||||
***
|
||||
<br><br>[$inputMediaDocumentExternal](../constructors/inputMediaDocumentExternal.md) = \['url' => [string](../types/string.md), 'caption' => [string](../types/string.md), \];<a name="inputMediaDocumentExternal"></a>
|
||||
<br><br>[$inputMediaDocumentExternal](../constructors/inputMediaDocumentExternal.md) = \['url' => [string](../types/string.md), 'caption' => [string](../types/string.md), 'ttl_seconds' => [int](../types/int.md), \];<a name="inputMediaDocumentExternal"></a>
|
||||
|
||||
***
|
||||
<br><br>[$inputMediaEmpty](../constructors/inputMediaEmpty.md) = \[\];<a name="inputMediaEmpty"></a>
|
||||
@ -651,19 +654,16 @@ description: List of constructors
|
||||
<br><br>[$inputMediaInvoice](../constructors/inputMediaInvoice.md) = \['title' => [string](../types/string.md), 'description' => [string](../types/string.md), 'photo' => [InputWebDocument](../types/InputWebDocument.md), 'invoice' => [Invoice](../types/Invoice.md), 'payload' => [bytes](../types/bytes.md), 'provider' => [string](../types/string.md), 'start_param' => [string](../types/string.md), \];<a name="inputMediaInvoice"></a>
|
||||
|
||||
***
|
||||
<br><br>[$inputMediaPhoto](../constructors/inputMediaPhoto.md) = \['id' => [InputPhoto](../types/InputPhoto.md), 'caption' => [string](../types/string.md), \];<a name="inputMediaPhoto"></a>
|
||||
<br><br>[$inputMediaPhoto](../constructors/inputMediaPhoto.md) = \['id' => [InputPhoto](../types/InputPhoto.md), 'caption' => [string](../types/string.md), 'ttl_seconds' => [int](../types/int.md), \];<a name="inputMediaPhoto"></a>
|
||||
|
||||
***
|
||||
<br><br>[$inputMediaPhotoExternal](../constructors/inputMediaPhotoExternal.md) = \['url' => [string](../types/string.md), 'caption' => [string](../types/string.md), \];<a name="inputMediaPhotoExternal"></a>
|
||||
<br><br>[$inputMediaPhotoExternal](../constructors/inputMediaPhotoExternal.md) = \['url' => [string](../types/string.md), 'caption' => [string](../types/string.md), 'ttl_seconds' => [int](../types/int.md), \];<a name="inputMediaPhotoExternal"></a>
|
||||
|
||||
***
|
||||
<br><br>[$inputMediaUploadedDocument](../constructors/inputMediaUploadedDocument.md) = \['file' => [InputFile](../types/InputFile.md), 'mime_type' => [string](../types/string.md), 'attributes' => \[[DocumentAttribute](../types/DocumentAttribute.md)\], 'caption' => [string](../types/string.md), 'stickers' => \[[InputDocument](../types/InputDocument.md)\], \];<a name="inputMediaUploadedDocument"></a>
|
||||
<br><br>[$inputMediaUploadedDocument](../constructors/inputMediaUploadedDocument.md) = \['file' => [InputFile](../types/InputFile.md), 'thumb' => [InputFile](../types/InputFile.md), 'mime_type' => [string](../types/string.md), 'attributes' => \[[DocumentAttribute](../types/DocumentAttribute.md)\], 'caption' => [string](../types/string.md), 'stickers' => \[[InputDocument](../types/InputDocument.md)\], 'ttl_seconds' => [int](../types/int.md), \];<a name="inputMediaUploadedDocument"></a>
|
||||
|
||||
***
|
||||
<br><br>[$inputMediaUploadedPhoto](../constructors/inputMediaUploadedPhoto.md) = \['file' => [InputFile](../types/InputFile.md), 'caption' => [string](../types/string.md), 'stickers' => \[[InputDocument](../types/InputDocument.md)\], \];<a name="inputMediaUploadedPhoto"></a>
|
||||
|
||||
***
|
||||
<br><br>[$inputMediaUploadedThumbDocument](../constructors/inputMediaUploadedThumbDocument.md) = \['file' => [InputFile](../types/InputFile.md), 'thumb' => [InputFile](../types/InputFile.md), 'mime_type' => [string](../types/string.md), 'attributes' => \[[DocumentAttribute](../types/DocumentAttribute.md)\], 'caption' => [string](../types/string.md), 'stickers' => \[[InputDocument](../types/InputDocument.md)\], \];<a name="inputMediaUploadedThumbDocument"></a>
|
||||
<br><br>[$inputMediaUploadedPhoto](../constructors/inputMediaUploadedPhoto.md) = \['file' => [InputFile](../types/InputFile.md), 'caption' => [string](../types/string.md), 'stickers' => \[[InputDocument](../types/InputDocument.md)\], 'ttl_seconds' => [int](../types/int.md), \];<a name="inputMediaUploadedPhoto"></a>
|
||||
|
||||
***
|
||||
<br><br>[$inputMediaVenue](../constructors/inputMediaVenue.md) = \['geo_point' => [InputGeoPoint](../types/InputGeoPoint.md), 'title' => [string](../types/string.md), 'address' => [string](../types/string.md), 'provider' => [string](../types/string.md), 'venue_id' => [string](../types/string.md), \];<a name="inputMediaVenue"></a>
|
||||
@ -894,7 +894,7 @@ description: List of constructors
|
||||
<br><br>[$maskCoords](../constructors/maskCoords.md) = \['n' => [int](../types/int.md), 'x' => [double](../types/double.md), 'y' => [double](../types/double.md), 'zoom' => [double](../types/double.md), \];<a name="maskCoords"></a>
|
||||
|
||||
***
|
||||
<br><br>[$message](../constructors/message.md) = \['out' => [Bool](../types/Bool.md), 'mentioned' => [Bool](../types/Bool.md), 'media_unread' => [Bool](../types/Bool.md), 'silent' => [Bool](../types/Bool.md), 'post' => [Bool](../types/Bool.md), 'id' => [int](../types/int.md), 'from_id' => [int](../types/int.md), 'to_id' => [Peer](../types/Peer.md), 'fwd_from' => [MessageFwdHeader](../types/MessageFwdHeader.md), 'via_bot_id' => [int](../types/int.md), 'reply_to_msg_id' => [int](../types/int.md), 'date' => [int](../types/int.md), 'message' => [string](../types/string.md), 'media' => [MessageMedia](../types/MessageMedia.md), 'reply_markup' => [ReplyMarkup](../types/ReplyMarkup.md), 'entities' => \[[MessageEntity](../types/MessageEntity.md)\], 'views' => [int](../types/int.md), 'edit_date' => [int](../types/int.md), \];<a name="message"></a>
|
||||
<br><br>[$message](../constructors/message.md) = \['out' => [Bool](../types/Bool.md), 'mentioned' => [Bool](../types/Bool.md), 'media_unread' => [Bool](../types/Bool.md), 'silent' => [Bool](../types/Bool.md), 'post' => [Bool](../types/Bool.md), 'id' => [int](../types/int.md), 'from_id' => [int](../types/int.md), 'to_id' => [Peer](../types/Peer.md), 'fwd_from' => [MessageFwdHeader](../types/MessageFwdHeader.md), 'via_bot_id' => [int](../types/int.md), 'reply_to_msg_id' => [int](../types/int.md), 'date' => [int](../types/int.md), 'message' => [string](../types/string.md), 'media' => [MessageMedia](../types/MessageMedia.md), 'reply_markup' => [ReplyMarkup](../types/ReplyMarkup.md), 'entities' => \[[MessageEntity](../types/MessageEntity.md)\], 'views' => [int](../types/int.md), 'edit_date' => [int](../types/int.md), 'post_author' => [string](../types/string.md), \];<a name="message"></a>
|
||||
|
||||
***
|
||||
<br><br>[$messageActionChannelCreate](../constructors/messageActionChannelCreate.md) = \['title' => [string](../types/string.md), \];<a name="messageActionChannelCreate"></a>
|
||||
@ -947,6 +947,9 @@ description: List of constructors
|
||||
***
|
||||
<br><br>[$messageActionPinMessage](../constructors/messageActionPinMessage.md) = \[\];<a name="messageActionPinMessage"></a>
|
||||
|
||||
***
|
||||
<br><br>[$messageActionScreenshotTaken](../constructors/messageActionScreenshotTaken.md) = \[\];<a name="messageActionScreenshotTaken"></a>
|
||||
|
||||
***
|
||||
<br><br>[$messageEmpty](../constructors/messageEmpty.md) = \['id' => [int](../types/int.md), \];<a name="messageEmpty"></a>
|
||||
|
||||
@ -987,13 +990,13 @@ description: List of constructors
|
||||
<br><br>[$messageEntityUrl](../constructors/messageEntityUrl.md) = \['offset' => [int](../types/int.md), 'length' => [int](../types/int.md), \];<a name="messageEntityUrl"></a>
|
||||
|
||||
***
|
||||
<br><br>[$messageFwdHeader](../constructors/messageFwdHeader.md) = \['from_id' => [int](../types/int.md), 'date' => [int](../types/int.md), 'channel_id' => [int](../types/int.md), 'channel_post' => [int](../types/int.md), \];<a name="messageFwdHeader"></a>
|
||||
<br><br>[$messageFwdHeader](../constructors/messageFwdHeader.md) = \['from_id' => [int](../types/int.md), 'date' => [int](../types/int.md), 'channel_id' => [int](../types/int.md), 'channel_post' => [int](../types/int.md), 'post_author' => [string](../types/string.md), \];<a name="messageFwdHeader"></a>
|
||||
|
||||
***
|
||||
<br><br>[$messageMediaContact](../constructors/messageMediaContact.md) = \['phone_number' => [string](../types/string.md), 'first_name' => [string](../types/string.md), 'last_name' => [string](../types/string.md), 'user_id' => [int](../types/int.md), \];<a name="messageMediaContact"></a>
|
||||
|
||||
***
|
||||
<br><br>[$messageMediaDocument](../constructors/messageMediaDocument.md) = \['document' => [Document](../types/Document.md), 'caption' => [string](../types/string.md), \];<a name="messageMediaDocument"></a>
|
||||
<br><br>[$messageMediaDocument](../constructors/messageMediaDocument.md) = \['document' => [Document](../types/Document.md), 'caption' => [string](../types/string.md), 'ttl_seconds' => [int](../types/int.md), \];<a name="messageMediaDocument"></a>
|
||||
|
||||
***
|
||||
<br><br>[$messageMediaEmpty](../constructors/messageMediaEmpty.md) = \[\];<a name="messageMediaEmpty"></a>
|
||||
@ -1008,7 +1011,7 @@ description: List of constructors
|
||||
<br><br>[$messageMediaInvoice](../constructors/messageMediaInvoice.md) = \['shipping_address_requested' => [Bool](../types/Bool.md), 'test' => [Bool](../types/Bool.md), 'title' => [string](../types/string.md), 'description' => [string](../types/string.md), 'photo' => [WebDocument](../types/WebDocument.md), 'receipt_msg_id' => [int](../types/int.md), 'currency' => [string](../types/string.md), 'total_amount' => [long](../types/long.md), 'start_param' => [string](../types/string.md), \];<a name="messageMediaInvoice"></a>
|
||||
|
||||
***
|
||||
<br><br>[$messageMediaPhoto](../constructors/messageMediaPhoto.md) = \['photo' => [Photo](../types/Photo.md), 'caption' => [string](../types/string.md), \];<a name="messageMediaPhoto"></a>
|
||||
<br><br>[$messageMediaPhoto](../constructors/messageMediaPhoto.md) = \['photo' => [Photo](../types/Photo.md), 'caption' => [string](../types/string.md), 'ttl_seconds' => [int](../types/int.md), \];<a name="messageMediaPhoto"></a>
|
||||
|
||||
***
|
||||
<br><br>[$messageMediaUnsupported](../constructors/messageMediaUnsupported.md) = \[\];<a name="messageMediaUnsupported"></a>
|
||||
@ -1319,6 +1322,9 @@ description: List of constructors
|
||||
***
|
||||
<br><br>[$pong](../constructors/pong.md) = \['msg_id' => [long](../types/long.md), 'ping_id' => [long](../types/long.md), \];<a name="pong"></a>
|
||||
|
||||
***
|
||||
<br><br>[$popularContact](../constructors/popularContact.md) = \['client_id' => [long](../types/long.md), 'importers' => [int](../types/int.md), \];<a name="popularContact"></a>
|
||||
|
||||
***
|
||||
<br><br>[$postAddress](../constructors/postAddress.md) = \['street_line1' => [string](../types/string.md), 'street_line2' => [string](../types/string.md), 'city' => [string](../types/string.md), 'state' => [string](../types/string.md), 'country_iso2' => [string](../types/string.md), 'post_code' => [string](../types/string.md), \];<a name="postAddress"></a>
|
||||
|
||||
@ -1749,7 +1755,7 @@ description: List of constructors
|
||||
|
||||
[$upload\_file](../constructors/upload_file.md) = \['type' => [storage\_FileType](../types/storage_FileType.md), 'mtime' => [int](../types/int.md), 'bytes' => [bytes](../types/bytes.md), \];<a name="upload_file"></a>
|
||||
|
||||
[$upload\_fileCdnRedirect](../constructors/upload_fileCdnRedirect.md) = \['dc_id' => [int](../types/int.md), 'file_token' => [bytes](../types/bytes.md), 'encryption_key' => [bytes](../types/bytes.md), 'encryption_iv' => [bytes](../types/bytes.md), \];<a name="upload_fileCdnRedirect"></a>
|
||||
[$upload\_fileCdnRedirect](../constructors/upload_fileCdnRedirect.md) = \['dc_id' => [int](../types/int.md), 'file_token' => [bytes](../types/bytes.md), 'encryption_key' => [bytes](../types/bytes.md), 'encryption_iv' => [bytes](../types/bytes.md), 'cdn_file_hashes' => \[[CdnFileHash](../types/CdnFileHash.md)\], \];<a name="upload_fileCdnRedirect"></a>
|
||||
|
||||
[$upload\_webFile](../constructors/upload_webFile.md) = \['size' => [int](../types/int.md), 'mime_type' => [string](../types/string.md), 'file_type' => [storage\_FileType](../types/storage_FileType.md), 'mtime' => [int](../types/int.md), 'bytes' => [bytes](../types/bytes.md), \];<a name="upload_webFile"></a>
|
||||
|
||||
|
@ -13,6 +13,7 @@ description: inputMediaDocument attributes, type and example
|
||||
|----------|:-------------:|---------:|
|
||||
|id|[InputDocument](../types/InputDocument.md) | Yes|
|
||||
|caption|[string](../types/string.md) | Yes|
|
||||
|ttl\_seconds|[int](../types/int.md) | Optional|
|
||||
|
||||
|
||||
|
||||
@ -22,13 +23,13 @@ description: inputMediaDocument attributes, type and example
|
||||
### Example:
|
||||
|
||||
```
|
||||
$inputMediaDocument = ['_' => 'inputMediaDocument', 'id' => InputDocument, 'caption' => 'string'];
|
||||
$inputMediaDocument = ['_' => 'inputMediaDocument', 'id' => InputDocument, 'caption' => 'string', 'ttl_seconds' => int];
|
||||
```
|
||||
|
||||
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||
|
||||
```
|
||||
{"_": "inputMediaDocument", "id": InputDocument, "caption": "string"}
|
||||
{"_": "inputMediaDocument", "id": InputDocument, "caption": "string", "ttl_seconds": int}
|
||||
```
|
||||
|
||||
|
||||
@ -36,7 +37,7 @@ Or, if you're into Lua:
|
||||
|
||||
|
||||
```
|
||||
inputMediaDocument={_='inputMediaDocument', id=InputDocument, caption='string'}
|
||||
inputMediaDocument={_='inputMediaDocument', id=InputDocument, caption='string', ttl_seconds=int}
|
||||
|
||||
```
|
||||
|
||||
|
@ -13,6 +13,7 @@ description: inputMediaDocumentExternal attributes, type and example
|
||||
|----------|:-------------:|---------:|
|
||||
|url|[string](../types/string.md) | Yes|
|
||||
|caption|[string](../types/string.md) | Yes|
|
||||
|ttl\_seconds|[int](../types/int.md) | Optional|
|
||||
|
||||
|
||||
|
||||
@ -22,13 +23,13 @@ description: inputMediaDocumentExternal attributes, type and example
|
||||
### Example:
|
||||
|
||||
```
|
||||
$inputMediaDocumentExternal = ['_' => 'inputMediaDocumentExternal', 'url' => 'string', 'caption' => 'string'];
|
||||
$inputMediaDocumentExternal = ['_' => 'inputMediaDocumentExternal', 'url' => 'string', 'caption' => 'string', 'ttl_seconds' => int];
|
||||
```
|
||||
|
||||
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||
|
||||
```
|
||||
{"_": "inputMediaDocumentExternal", "url": "string", "caption": "string"}
|
||||
{"_": "inputMediaDocumentExternal", "url": "string", "caption": "string", "ttl_seconds": int}
|
||||
```
|
||||
|
||||
|
||||
@ -36,7 +37,7 @@ Or, if you're into Lua:
|
||||
|
||||
|
||||
```
|
||||
inputMediaDocumentExternal={_='inputMediaDocumentExternal', url='string', caption='string'}
|
||||
inputMediaDocumentExternal={_='inputMediaDocumentExternal', url='string', caption='string', ttl_seconds=int}
|
||||
|
||||
```
|
||||
|
||||
|
@ -13,6 +13,7 @@ description: inputMediaPhoto attributes, type and example
|
||||
|----------|:-------------:|---------:|
|
||||
|id|[InputPhoto](../types/InputPhoto.md) | Yes|
|
||||
|caption|[string](../types/string.md) | Yes|
|
||||
|ttl\_seconds|[int](../types/int.md) | Optional|
|
||||
|
||||
|
||||
|
||||
@ -22,13 +23,13 @@ description: inputMediaPhoto attributes, type and example
|
||||
### Example:
|
||||
|
||||
```
|
||||
$inputMediaPhoto = ['_' => 'inputMediaPhoto', 'id' => InputPhoto, 'caption' => 'string'];
|
||||
$inputMediaPhoto = ['_' => 'inputMediaPhoto', 'id' => InputPhoto, 'caption' => 'string', 'ttl_seconds' => int];
|
||||
```
|
||||
|
||||
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||
|
||||
```
|
||||
{"_": "inputMediaPhoto", "id": InputPhoto, "caption": "string"}
|
||||
{"_": "inputMediaPhoto", "id": InputPhoto, "caption": "string", "ttl_seconds": int}
|
||||
```
|
||||
|
||||
|
||||
@ -36,7 +37,7 @@ Or, if you're into Lua:
|
||||
|
||||
|
||||
```
|
||||
inputMediaPhoto={_='inputMediaPhoto', id=InputPhoto, caption='string'}
|
||||
inputMediaPhoto={_='inputMediaPhoto', id=InputPhoto, caption='string', ttl_seconds=int}
|
||||
|
||||
```
|
||||
|
||||
|
@ -13,6 +13,7 @@ description: inputMediaPhotoExternal attributes, type and example
|
||||
|----------|:-------------:|---------:|
|
||||
|url|[string](../types/string.md) | Yes|
|
||||
|caption|[string](../types/string.md) | Yes|
|
||||
|ttl\_seconds|[int](../types/int.md) | Optional|
|
||||
|
||||
|
||||
|
||||
@ -22,13 +23,13 @@ description: inputMediaPhotoExternal attributes, type and example
|
||||
### Example:
|
||||
|
||||
```
|
||||
$inputMediaPhotoExternal = ['_' => 'inputMediaPhotoExternal', 'url' => 'string', 'caption' => 'string'];
|
||||
$inputMediaPhotoExternal = ['_' => 'inputMediaPhotoExternal', 'url' => 'string', 'caption' => 'string', 'ttl_seconds' => int];
|
||||
```
|
||||
|
||||
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||
|
||||
```
|
||||
{"_": "inputMediaPhotoExternal", "url": "string", "caption": "string"}
|
||||
{"_": "inputMediaPhotoExternal", "url": "string", "caption": "string", "ttl_seconds": int}
|
||||
```
|
||||
|
||||
|
||||
@ -36,7 +37,7 @@ Or, if you're into Lua:
|
||||
|
||||
|
||||
```
|
||||
inputMediaPhotoExternal={_='inputMediaPhotoExternal', url='string', caption='string'}
|
||||
inputMediaPhotoExternal={_='inputMediaPhotoExternal', url='string', caption='string', ttl_seconds=int}
|
||||
|
||||
```
|
||||
|
||||
|
@ -12,10 +12,12 @@ description: inputMediaUploadedDocument attributes, type and example
|
||||
| Name | Type | Required |
|
||||
|----------|:-------------:|---------:|
|
||||
|file|[InputFile](../types/InputFile.md) | Yes|
|
||||
|thumb|[InputFile](../types/InputFile.md) | Optional|
|
||||
|mime\_type|[string](../types/string.md) | Yes|
|
||||
|attributes|Array of [DocumentAttribute](../types/DocumentAttribute.md) | Yes|
|
||||
|caption|[string](../types/string.md) | Yes|
|
||||
|stickers|Array of [InputDocument](../types/InputDocument.md) | Optional|
|
||||
|ttl\_seconds|[int](../types/int.md) | Optional|
|
||||
|
||||
|
||||
|
||||
@ -25,13 +27,13 @@ description: inputMediaUploadedDocument attributes, type and example
|
||||
### Example:
|
||||
|
||||
```
|
||||
$inputMediaUploadedDocument = ['_' => 'inputMediaUploadedDocument', 'file' => InputFile, 'mime_type' => 'string', 'attributes' => [DocumentAttribute], 'caption' => 'string', 'stickers' => [InputDocument]];
|
||||
$inputMediaUploadedDocument = ['_' => 'inputMediaUploadedDocument', 'file' => InputFile, 'thumb' => InputFile, 'mime_type' => 'string', 'attributes' => [DocumentAttribute], 'caption' => 'string', 'stickers' => [InputDocument], 'ttl_seconds' => int];
|
||||
```
|
||||
|
||||
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||
|
||||
```
|
||||
{"_": "inputMediaUploadedDocument", "file": InputFile, "mime_type": "string", "attributes": [DocumentAttribute], "caption": "string", "stickers": [InputDocument]}
|
||||
{"_": "inputMediaUploadedDocument", "file": InputFile, "thumb": InputFile, "mime_type": "string", "attributes": [DocumentAttribute], "caption": "string", "stickers": [InputDocument], "ttl_seconds": int}
|
||||
```
|
||||
|
||||
|
||||
@ -39,7 +41,7 @@ Or, if you're into Lua:
|
||||
|
||||
|
||||
```
|
||||
inputMediaUploadedDocument={_='inputMediaUploadedDocument', file=InputFile, mime_type='string', attributes={DocumentAttribute}, caption='string', stickers={InputDocument}}
|
||||
inputMediaUploadedDocument={_='inputMediaUploadedDocument', file=InputFile, thumb=InputFile, mime_type='string', attributes={DocumentAttribute}, caption='string', stickers={InputDocument}, ttl_seconds=int}
|
||||
|
||||
```
|
||||
|
||||
|
@ -14,6 +14,7 @@ description: inputMediaUploadedPhoto attributes, type and example
|
||||
|file|[InputFile](../types/InputFile.md) | Yes|
|
||||
|caption|[string](../types/string.md) | Yes|
|
||||
|stickers|Array of [InputDocument](../types/InputDocument.md) | Optional|
|
||||
|ttl\_seconds|[int](../types/int.md) | Optional|
|
||||
|
||||
|
||||
|
||||
@ -23,13 +24,13 @@ description: inputMediaUploadedPhoto attributes, type and example
|
||||
### Example:
|
||||
|
||||
```
|
||||
$inputMediaUploadedPhoto = ['_' => 'inputMediaUploadedPhoto', 'file' => InputFile, 'caption' => 'string', 'stickers' => [InputDocument]];
|
||||
$inputMediaUploadedPhoto = ['_' => 'inputMediaUploadedPhoto', 'file' => InputFile, 'caption' => 'string', 'stickers' => [InputDocument], 'ttl_seconds' => int];
|
||||
```
|
||||
|
||||
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||
|
||||
```
|
||||
{"_": "inputMediaUploadedPhoto", "file": InputFile, "caption": "string", "stickers": [InputDocument]}
|
||||
{"_": "inputMediaUploadedPhoto", "file": InputFile, "caption": "string", "stickers": [InputDocument], "ttl_seconds": int}
|
||||
```
|
||||
|
||||
|
||||
@ -37,7 +38,7 @@ Or, if you're into Lua:
|
||||
|
||||
|
||||
```
|
||||
inputMediaUploadedPhoto={_='inputMediaUploadedPhoto', file=InputFile, caption='string', stickers={InputDocument}}
|
||||
inputMediaUploadedPhoto={_='inputMediaUploadedPhoto', file=InputFile, caption='string', stickers={InputDocument}, ttl_seconds=int}
|
||||
|
||||
```
|
||||
|
||||
|
@ -1,47 +0,0 @@
|
||||
---
|
||||
title: inputMediaUploadedThumbDocument
|
||||
description: inputMediaUploadedThumbDocument attributes, type and example
|
||||
---
|
||||
## Constructor: inputMediaUploadedThumbDocument
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
### Attributes:
|
||||
|
||||
| Name | Type | Required |
|
||||
|----------|:-------------:|---------:|
|
||||
|file|[InputFile](../types/InputFile.md) | Yes|
|
||||
|thumb|[InputFile](../types/InputFile.md) | Yes|
|
||||
|mime\_type|[string](../types/string.md) | Yes|
|
||||
|attributes|Array of [DocumentAttribute](../types/DocumentAttribute.md) | Yes|
|
||||
|caption|[string](../types/string.md) | Yes|
|
||||
|stickers|Array of [InputDocument](../types/InputDocument.md) | Optional|
|
||||
|
||||
|
||||
|
||||
### Type: [InputMedia](../types/InputMedia.md)
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
```
|
||||
$inputMediaUploadedThumbDocument = ['_' => 'inputMediaUploadedThumbDocument', 'file' => InputFile, 'thumb' => InputFile, 'mime_type' => 'string', 'attributes' => [DocumentAttribute], 'caption' => 'string', 'stickers' => [InputDocument]];
|
||||
```
|
||||
|
||||
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||
|
||||
```
|
||||
{"_": "inputMediaUploadedThumbDocument", "file": InputFile, "thumb": InputFile, "mime_type": "string", "attributes": [DocumentAttribute], "caption": "string", "stickers": [InputDocument]}
|
||||
```
|
||||
|
||||
|
||||
Or, if you're into Lua:
|
||||
|
||||
|
||||
```
|
||||
inputMediaUploadedThumbDocument={_='inputMediaUploadedThumbDocument', file=InputFile, thumb=InputFile, mime_type='string', attributes={DocumentAttribute}, caption='string', stickers={InputDocument}}
|
||||
|
||||
```
|
||||
|
||||
|
@ -29,6 +29,7 @@ description: message attributes, type and example
|
||||
|entities|Array of [MessageEntity](../types/MessageEntity.md) | Optional|
|
||||
|views|[int](../types/int.md) | Optional|
|
||||
|edit\_date|[int](../types/int.md) | Optional|
|
||||
|post\_author|[string](../types/string.md) | Optional|
|
||||
|
||||
|
||||
|
||||
@ -38,13 +39,13 @@ description: message attributes, type and example
|
||||
### Example:
|
||||
|
||||
```
|
||||
$message = ['_' => 'message', 'out' => Bool, 'mentioned' => Bool, 'media_unread' => Bool, 'silent' => Bool, 'post' => Bool, 'id' => int, 'from_id' => int, 'to_id' => Peer, 'fwd_from' => MessageFwdHeader, 'via_bot_id' => int, 'reply_to_msg_id' => int, 'date' => int, 'message' => 'string', 'media' => MessageMedia, 'reply_markup' => ReplyMarkup, 'entities' => [MessageEntity], 'views' => int, 'edit_date' => int];
|
||||
$message = ['_' => 'message', 'out' => Bool, 'mentioned' => Bool, 'media_unread' => Bool, 'silent' => Bool, 'post' => Bool, 'id' => int, 'from_id' => int, 'to_id' => Peer, 'fwd_from' => MessageFwdHeader, 'via_bot_id' => int, 'reply_to_msg_id' => int, 'date' => int, 'message' => 'string', 'media' => MessageMedia, 'reply_markup' => ReplyMarkup, 'entities' => [MessageEntity], 'views' => int, 'edit_date' => int, 'post_author' => 'string'];
|
||||
```
|
||||
|
||||
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||
|
||||
```
|
||||
{"_": "message", "out": Bool, "mentioned": Bool, "media_unread": Bool, "silent": Bool, "post": Bool, "id": int, "from_id": int, "to_id": Peer, "fwd_from": MessageFwdHeader, "via_bot_id": int, "reply_to_msg_id": int, "date": int, "message": "string", "media": MessageMedia, "reply_markup": ReplyMarkup, "entities": [MessageEntity], "views": int, "edit_date": int}
|
||||
{"_": "message", "out": Bool, "mentioned": Bool, "media_unread": Bool, "silent": Bool, "post": Bool, "id": int, "from_id": int, "to_id": Peer, "fwd_from": MessageFwdHeader, "via_bot_id": int, "reply_to_msg_id": int, "date": int, "message": "string", "media": MessageMedia, "reply_markup": ReplyMarkup, "entities": [MessageEntity], "views": int, "edit_date": int, "post_author": "string"}
|
||||
```
|
||||
|
||||
|
||||
@ -52,7 +53,7 @@ Or, if you're into Lua:
|
||||
|
||||
|
||||
```
|
||||
message={_='message', out=Bool, mentioned=Bool, media_unread=Bool, silent=Bool, post=Bool, id=int, from_id=int, to_id=Peer, fwd_from=MessageFwdHeader, via_bot_id=int, reply_to_msg_id=int, date=int, message='string', media=MessageMedia, reply_markup=ReplyMarkup, entities={MessageEntity}, views=int, edit_date=int}
|
||||
message={_='message', out=Bool, mentioned=Bool, media_unread=Bool, silent=Bool, post=Bool, id=int, from_id=int, to_id=Peer, fwd_from=MessageFwdHeader, via_bot_id=int, reply_to_msg_id=int, date=int, message='string', media=MessageMedia, reply_markup=ReplyMarkup, entities={MessageEntity}, views=int, edit_date=int, post_author='string'}
|
||||
|
||||
```
|
||||
|
||||
|
37
docs/API_docs/constructors/messageActionScreenshotTaken.md
Normal file
37
docs/API_docs/constructors/messageActionScreenshotTaken.md
Normal file
@ -0,0 +1,37 @@
|
||||
---
|
||||
title: messageActionScreenshotTaken
|
||||
description: messageActionScreenshotTaken attributes, type and example
|
||||
---
|
||||
## Constructor: messageActionScreenshotTaken
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
### Type: [MessageAction](../types/MessageAction.md)
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
```
|
||||
$messageActionScreenshotTaken = ['_' => 'messageActionScreenshotTaken'];
|
||||
```
|
||||
|
||||
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||
|
||||
```
|
||||
{"_": "messageActionScreenshotTaken"}
|
||||
```
|
||||
|
||||
|
||||
Or, if you're into Lua:
|
||||
|
||||
|
||||
```
|
||||
messageActionScreenshotTaken={_='messageActionScreenshotTaken'}
|
||||
|
||||
```
|
||||
|
||||
|
@ -15,6 +15,7 @@ description: messageFwdHeader attributes, type and example
|
||||
|date|[int](../types/int.md) | Yes|
|
||||
|channel\_id|[int](../types/int.md) | Optional|
|
||||
|channel\_post|[int](../types/int.md) | Optional|
|
||||
|post\_author|[string](../types/string.md) | Optional|
|
||||
|
||||
|
||||
|
||||
@ -24,13 +25,13 @@ description: messageFwdHeader attributes, type and example
|
||||
### Example:
|
||||
|
||||
```
|
||||
$messageFwdHeader = ['_' => 'messageFwdHeader', 'from_id' => int, 'date' => int, 'channel_id' => int, 'channel_post' => int];
|
||||
$messageFwdHeader = ['_' => 'messageFwdHeader', 'from_id' => int, 'date' => int, 'channel_id' => int, 'channel_post' => int, 'post_author' => 'string'];
|
||||
```
|
||||
|
||||
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||
|
||||
```
|
||||
{"_": "messageFwdHeader", "from_id": int, "date": int, "channel_id": int, "channel_post": int}
|
||||
{"_": "messageFwdHeader", "from_id": int, "date": int, "channel_id": int, "channel_post": int, "post_author": "string"}
|
||||
```
|
||||
|
||||
|
||||
@ -38,7 +39,7 @@ Or, if you're into Lua:
|
||||
|
||||
|
||||
```
|
||||
messageFwdHeader={_='messageFwdHeader', from_id=int, date=int, channel_id=int, channel_post=int}
|
||||
messageFwdHeader={_='messageFwdHeader', from_id=int, date=int, channel_id=int, channel_post=int, post_author='string'}
|
||||
|
||||
```
|
||||
|
||||
|
@ -11,8 +11,9 @@ description: messageMediaDocument attributes, type and example
|
||||
|
||||
| Name | Type | Required |
|
||||
|----------|:-------------:|---------:|
|
||||
|document|[Document](../types/Document.md) | Yes|
|
||||
|caption|[string](../types/string.md) | Yes|
|
||||
|document|[Document](../types/Document.md) | Optional|
|
||||
|caption|[string](../types/string.md) | Optional|
|
||||
|ttl\_seconds|[int](../types/int.md) | Optional|
|
||||
|
||||
|
||||
|
||||
@ -22,13 +23,13 @@ description: messageMediaDocument attributes, type and example
|
||||
### Example:
|
||||
|
||||
```
|
||||
$messageMediaDocument = ['_' => 'messageMediaDocument', 'document' => Document, 'caption' => 'string'];
|
||||
$messageMediaDocument = ['_' => 'messageMediaDocument', 'document' => Document, 'caption' => 'string', 'ttl_seconds' => int];
|
||||
```
|
||||
|
||||
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||
|
||||
```
|
||||
{"_": "messageMediaDocument", "document": Document, "caption": "string"}
|
||||
{"_": "messageMediaDocument", "document": Document, "caption": "string", "ttl_seconds": int}
|
||||
```
|
||||
|
||||
|
||||
@ -36,7 +37,7 @@ Or, if you're into Lua:
|
||||
|
||||
|
||||
```
|
||||
messageMediaDocument={_='messageMediaDocument', document=Document, caption='string'}
|
||||
messageMediaDocument={_='messageMediaDocument', document=Document, caption='string', ttl_seconds=int}
|
||||
|
||||
```
|
||||
|
||||
|
@ -11,8 +11,9 @@ description: messageMediaPhoto attributes, type and example
|
||||
|
||||
| Name | Type | Required |
|
||||
|----------|:-------------:|---------:|
|
||||
|photo|[Photo](../types/Photo.md) | Yes|
|
||||
|caption|[string](../types/string.md) | Yes|
|
||||
|photo|[Photo](../types/Photo.md) | Optional|
|
||||
|caption|[string](../types/string.md) | Optional|
|
||||
|ttl\_seconds|[int](../types/int.md) | Optional|
|
||||
|
||||
|
||||
|
||||
@ -22,13 +23,13 @@ description: messageMediaPhoto attributes, type and example
|
||||
### Example:
|
||||
|
||||
```
|
||||
$messageMediaPhoto = ['_' => 'messageMediaPhoto', 'photo' => Photo, 'caption' => 'string'];
|
||||
$messageMediaPhoto = ['_' => 'messageMediaPhoto', 'photo' => Photo, 'caption' => 'string', 'ttl_seconds' => int];
|
||||
```
|
||||
|
||||
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||
|
||||
```
|
||||
{"_": "messageMediaPhoto", "photo": Photo, "caption": "string"}
|
||||
{"_": "messageMediaPhoto", "photo": Photo, "caption": "string", "ttl_seconds": int}
|
||||
```
|
||||
|
||||
|
||||
@ -36,7 +37,7 @@ Or, if you're into Lua:
|
||||
|
||||
|
||||
```
|
||||
messageMediaPhoto={_='messageMediaPhoto', photo=Photo, caption='string'}
|
||||
messageMediaPhoto={_='messageMediaPhoto', photo=Photo, caption='string', ttl_seconds=int}
|
||||
|
||||
```
|
||||
|
||||
|
43
docs/API_docs/constructors/popularContact.md
Normal file
43
docs/API_docs/constructors/popularContact.md
Normal file
@ -0,0 +1,43 @@
|
||||
---
|
||||
title: popularContact
|
||||
description: popularContact attributes, type and example
|
||||
---
|
||||
## Constructor: popularContact
|
||||
[Back to constructors index](index.md)
|
||||
|
||||
|
||||
|
||||
### Attributes:
|
||||
|
||||
| Name | Type | Required |
|
||||
|----------|:-------------:|---------:|
|
||||
|client\_id|[long](../types/long.md) | Yes|
|
||||
|importers|[int](../types/int.md) | Yes|
|
||||
|
||||
|
||||
|
||||
### Type: [PopularContact](../types/PopularContact.md)
|
||||
|
||||
|
||||
### Example:
|
||||
|
||||
```
|
||||
$popularContact = ['_' => 'popularContact', 'client_id' => long, 'importers' => int];
|
||||
```
|
||||
|
||||
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||
|
||||
```
|
||||
{"_": "popularContact", "client_id": long, "importers": int}
|
||||
```
|
||||
|
||||
|
||||
Or, if you're into Lua:
|
||||
|
||||
|
||||
```
|
||||
popularContact={_='popularContact', client_id=long, importers=int}
|
||||
|
||||
```
|
||||
|
||||
|
@ -15,6 +15,7 @@ description: upload_fileCdnRedirect attributes, type and example
|
||||
|file\_token|[bytes](../types/bytes.md) | Yes|
|
||||
|encryption\_key|[bytes](../types/bytes.md) | Yes|
|
||||
|encryption\_iv|[bytes](../types/bytes.md) | Yes|
|
||||
|cdn\_file\_hashes|Array of [CdnFileHash](../types/CdnFileHash.md) | Yes|
|
||||
|
||||
|
||||
|
||||
@ -24,13 +25,13 @@ description: upload_fileCdnRedirect attributes, type and example
|
||||
### Example:
|
||||
|
||||
```
|
||||
$upload_fileCdnRedirect = ['_' => 'upload.fileCdnRedirect', 'dc_id' => int, 'file_token' => 'bytes', 'encryption_key' => 'bytes', 'encryption_iv' => 'bytes'];
|
||||
$upload_fileCdnRedirect = ['_' => 'upload.fileCdnRedirect', 'dc_id' => int, 'file_token' => 'bytes', 'encryption_key' => 'bytes', 'encryption_iv' => 'bytes', 'cdn_file_hashes' => [CdnFileHash]];
|
||||
```
|
||||
|
||||
[PWRTelegram](https://pwrtelegram.xyz) json-encoded version:
|
||||
|
||||
```
|
||||
{"_": "upload.fileCdnRedirect", "dc_id": int, "file_token": "bytes", "encryption_key": "bytes", "encryption_iv": "bytes"}
|
||||
{"_": "upload.fileCdnRedirect", "dc_id": int, "file_token": "bytes", "encryption_key": "bytes", "encryption_iv": "bytes", "cdn_file_hashes": [CdnFileHash]}
|
||||
```
|
||||
|
||||
|
||||
@ -38,7 +39,7 @@ Or, if you're into Lua:
|
||||
|
||||
|
||||
```
|
||||
upload_fileCdnRedirect={_='upload.fileCdnRedirect', dc_id=int, file_token='bytes', encryption_key='bytes', encryption_iv='bytes'}
|
||||
upload_fileCdnRedirect={_='upload.fileCdnRedirect', dc_id=int, file_token='bytes', encryption_key='bytes', encryption_iv='bytes', cdn_file_hashes={CdnFileHash}}
|
||||
|
||||
```
|
||||
|
||||
|
@ -1,8 +1,8 @@
|
||||
---
|
||||
title: MadelineProto API documentation (layer 68)
|
||||
description: MadelineProto API documentation (layer 68)
|
||||
title: MadelineProto API documentation (layer 70)
|
||||
description: MadelineProto API documentation (layer 70)
|
||||
---
|
||||
# MadelineProto API documentation (layer 68)
|
||||
# MadelineProto API documentation (layer 70)
|
||||
|
||||
[Methods](methods/)
|
||||
|
||||
|
@ -38,7 +38,7 @@ if (isset($number)) { // Login as a user
|
||||
$User = $MadelineProto->account->changePhone(['phone_number' => 'string', 'phone_code_hash' => 'string', 'phone_code' => 'string', ]);
|
||||
```
|
||||
|
||||
Or, if you're using [PWRTelegram](https://pwrtelegram.xyz):
|
||||
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
|
||||
|
||||
### As a bot:
|
||||
|
||||
|
@ -36,7 +36,7 @@ if (isset($number)) { // Login as a user
|
||||
$Bool = $MadelineProto->account->checkUsername(['username' => 'string', ]);
|
||||
```
|
||||
|
||||
Or, if you're using [PWRTelegram](https://pwrtelegram.xyz):
|
||||
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
|
||||
|
||||
### As a bot:
|
||||
|
||||
|
@ -37,7 +37,7 @@ if (isset($number)) { // Login as a user
|
||||
$Bool = $MadelineProto->account->confirmPhone(['phone_code_hash' => 'string', 'phone_code' => 'string', ]);
|
||||
```
|
||||
|
||||
Or, if you're using [PWRTelegram](https://pwrtelegram.xyz):
|
||||
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
|
||||
|
||||
### As a bot:
|
||||
|
||||
|
@ -36,7 +36,7 @@ if (isset($number)) { // Login as a user
|
||||
$Bool = $MadelineProto->account->deleteAccount(['reason' => 'string', ]);
|
||||
```
|
||||
|
||||
Or, if you're using [PWRTelegram](https://pwrtelegram.xyz):
|
||||
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
|
||||
|
||||
### As a bot:
|
||||
|
||||
|
@ -31,7 +31,7 @@ if (isset($number)) { // Login as a user
|
||||
$AccountDaysTTL = $MadelineProto->account->getAccountTTL();
|
||||
```
|
||||
|
||||
Or, if you're using [PWRTelegram](https://pwrtelegram.xyz):
|
||||
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
|
||||
|
||||
### As a bot:
|
||||
|
||||
|
@ -31,7 +31,7 @@ if (isset($number)) { // Login as a user
|
||||
$account_Authorizations = $MadelineProto->account->getAuthorizations();
|
||||
```
|
||||
|
||||
Or, if you're using [PWRTelegram](https://pwrtelegram.xyz):
|
||||
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
|
||||
|
||||
### As a bot:
|
||||
|
||||
|
@ -36,7 +36,7 @@ if (isset($number)) { // Login as a user
|
||||
$PeerNotifySettings = $MadelineProto->account->getNotifySettings(['peer' => InputNotifyPeer, ]);
|
||||
```
|
||||
|
||||
Or, if you're using [PWRTelegram](https://pwrtelegram.xyz):
|
||||
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
|
||||
|
||||
### As a bot:
|
||||
|
||||
|
@ -31,7 +31,7 @@ if (isset($number)) { // Login as a user
|
||||
$account_Password = $MadelineProto->account->getPassword();
|
||||
```
|
||||
|
||||
Or, if you're using [PWRTelegram](https://pwrtelegram.xyz):
|
||||
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
|
||||
|
||||
### As a bot:
|
||||
|
||||
|
@ -36,7 +36,7 @@ if (isset($number)) { // Login as a user
|
||||
$account_PasswordSettings = $MadelineProto->account->getPasswordSettings(['current_password_hash' => 'bytes', ]);
|
||||
```
|
||||
|
||||
Or, if you're using [PWRTelegram](https://pwrtelegram.xyz):
|
||||
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
|
||||
|
||||
### As a bot:
|
||||
|
||||
|
@ -36,7 +36,7 @@ if (isset($number)) { // Login as a user
|
||||
$account_PrivacyRules = $MadelineProto->account->getPrivacy(['key' => InputPrivacyKey, ]);
|
||||
```
|
||||
|
||||
Or, if you're using [PWRTelegram](https://pwrtelegram.xyz):
|
||||
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
|
||||
|
||||
### As a bot:
|
||||
|
||||
|
@ -37,7 +37,7 @@ if (isset($number)) { // Login as a user
|
||||
$account_TmpPassword = $MadelineProto->account->getTmpPassword(['password_hash' => 'bytes', 'period' => int, ]);
|
||||
```
|
||||
|
||||
Or, if you're using [PWRTelegram](https://pwrtelegram.xyz):
|
||||
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
|
||||
|
||||
### As a bot:
|
||||
|
||||
|
@ -31,7 +31,7 @@ if (isset($number)) { // Login as a user
|
||||
$Vector_of_WallPaper = $MadelineProto->account->getWallPapers();
|
||||
```
|
||||
|
||||
Or, if you're using [PWRTelegram](https://pwrtelegram.xyz):
|
||||
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
|
||||
|
||||
### As a bot:
|
||||
|
||||
|
@ -37,7 +37,7 @@ if (isset($number)) { // Login as a user
|
||||
$Bool = $MadelineProto->account->registerDevice(['token_type' => int, 'token' => 'string', ]);
|
||||
```
|
||||
|
||||
Or, if you're using [PWRTelegram](https://pwrtelegram.xyz):
|
||||
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
|
||||
|
||||
### As a bot:
|
||||
|
||||
|
@ -37,7 +37,7 @@ if (isset($number)) { // Login as a user
|
||||
$Bool = $MadelineProto->account->reportPeer(['peer' => InputPeer, 'reason' => ReportReason, ]);
|
||||
```
|
||||
|
||||
Or, if you're using [PWRTelegram](https://pwrtelegram.xyz):
|
||||
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
|
||||
|
||||
### As a bot:
|
||||
|
||||
|
@ -36,7 +36,7 @@ if (isset($number)) { // Login as a user
|
||||
$Bool = $MadelineProto->account->resetAuthorization(['hash' => long, ]);
|
||||
```
|
||||
|
||||
Or, if you're using [PWRTelegram](https://pwrtelegram.xyz):
|
||||
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
|
||||
|
||||
### As a bot:
|
||||
|
||||
|
@ -31,7 +31,7 @@ if (isset($number)) { // Login as a user
|
||||
$Bool = $MadelineProto->account->resetNotifySettings();
|
||||
```
|
||||
|
||||
Or, if you're using [PWRTelegram](https://pwrtelegram.xyz):
|
||||
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
|
||||
|
||||
### As a bot:
|
||||
|
||||
|
@ -38,7 +38,7 @@ if (isset($number)) { // Login as a user
|
||||
$auth_SentCode = $MadelineProto->account->sendChangePhoneCode(['allow_flashcall' => Bool, 'phone_number' => 'string', 'current_number' => Bool, ]);
|
||||
```
|
||||
|
||||
Or, if you're using [PWRTelegram](https://pwrtelegram.xyz):
|
||||
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
|
||||
|
||||
### As a bot:
|
||||
|
||||
|
@ -38,7 +38,7 @@ if (isset($number)) { // Login as a user
|
||||
$auth_SentCode = $MadelineProto->account->sendConfirmPhoneCode(['allow_flashcall' => Bool, 'hash' => 'string', 'current_number' => Bool, ]);
|
||||
```
|
||||
|
||||
Or, if you're using [PWRTelegram](https://pwrtelegram.xyz):
|
||||
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
|
||||
|
||||
### As a bot:
|
||||
|
||||
|
@ -36,7 +36,7 @@ if (isset($number)) { // Login as a user
|
||||
$Bool = $MadelineProto->account->setAccountTTL(['ttl' => AccountDaysTTL, ]);
|
||||
```
|
||||
|
||||
Or, if you're using [PWRTelegram](https://pwrtelegram.xyz):
|
||||
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
|
||||
|
||||
### As a bot:
|
||||
|
||||
|
@ -37,7 +37,7 @@ if (isset($number)) { // Login as a user
|
||||
$account_PrivacyRules = $MadelineProto->account->setPrivacy(['key' => InputPrivacyKey, 'rules' => [InputPrivacyRule], ]);
|
||||
```
|
||||
|
||||
Or, if you're using [PWRTelegram](https://pwrtelegram.xyz):
|
||||
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
|
||||
|
||||
### As a bot:
|
||||
|
||||
|
@ -37,7 +37,7 @@ if (isset($number)) { // Login as a user
|
||||
$Bool = $MadelineProto->account->unregisterDevice(['token_type' => int, 'token' => 'string', ]);
|
||||
```
|
||||
|
||||
Or, if you're using [PWRTelegram](https://pwrtelegram.xyz):
|
||||
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
|
||||
|
||||
### As a bot:
|
||||
|
||||
|
@ -36,7 +36,7 @@ if (isset($number)) { // Login as a user
|
||||
$Bool = $MadelineProto->account->updateDeviceLocked(['period' => int, ]);
|
||||
```
|
||||
|
||||
Or, if you're using [PWRTelegram](https://pwrtelegram.xyz):
|
||||
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
|
||||
|
||||
### As a bot:
|
||||
|
||||
|
@ -37,7 +37,7 @@ if (isset($number)) { // Login as a user
|
||||
$Bool = $MadelineProto->account->updateNotifySettings(['peer' => InputNotifyPeer, 'settings' => InputPeerNotifySettings, ]);
|
||||
```
|
||||
|
||||
Or, if you're using [PWRTelegram](https://pwrtelegram.xyz):
|
||||
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
|
||||
|
||||
### As a bot:
|
||||
|
||||
|
@ -37,7 +37,7 @@ if (isset($number)) { // Login as a user
|
||||
$Bool = $MadelineProto->account->updatePasswordSettings(['current_password_hash' => 'bytes', 'new_settings' => account_PasswordInputSettings, ]);
|
||||
```
|
||||
|
||||
Or, if you're using [PWRTelegram](https://pwrtelegram.xyz):
|
||||
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
|
||||
|
||||
### As a bot:
|
||||
|
||||
|
@ -38,7 +38,7 @@ if (isset($number)) { // Login as a user
|
||||
$User = $MadelineProto->account->updateProfile(['first_name' => 'string', 'last_name' => 'string', 'about' => 'string', ]);
|
||||
```
|
||||
|
||||
Or, if you're using [PWRTelegram](https://pwrtelegram.xyz):
|
||||
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
|
||||
|
||||
### As a bot:
|
||||
|
||||
|
@ -36,7 +36,7 @@ if (isset($number)) { // Login as a user
|
||||
$Bool = $MadelineProto->account->updateStatus(['offline' => Bool, ]);
|
||||
```
|
||||
|
||||
Or, if you're using [PWRTelegram](https://pwrtelegram.xyz):
|
||||
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
|
||||
|
||||
### As a bot:
|
||||
|
||||
|
@ -36,7 +36,7 @@ if (isset($number)) { // Login as a user
|
||||
$User = $MadelineProto->account->updateUsername(['username' => 'string', ]);
|
||||
```
|
||||
|
||||
Or, if you're using [PWRTelegram](https://pwrtelegram.xyz):
|
||||
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
|
||||
|
||||
### As a bot:
|
||||
|
||||
|
@ -39,7 +39,7 @@ if (isset($number)) { // Login as a user
|
||||
$Bool = $MadelineProto->auth->bindTempAuthKey(['perm_auth_key_id' => long, 'nonce' => long, 'expires_at' => int, 'encrypted_message' => 'bytes', ]);
|
||||
```
|
||||
|
||||
Or, if you're using [PWRTelegram](https://pwrtelegram.xyz):
|
||||
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
|
||||
|
||||
### As a bot:
|
||||
|
||||
|
@ -37,7 +37,7 @@ if (isset($number)) { // Login as a user
|
||||
$Bool = $MadelineProto->auth->cancelCode(['phone_number' => 'string', 'phone_code_hash' => 'string', ]);
|
||||
```
|
||||
|
||||
Or, if you're using [PWRTelegram](https://pwrtelegram.xyz):
|
||||
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
|
||||
|
||||
### As a bot:
|
||||
|
||||
|
@ -36,7 +36,7 @@ if (isset($number)) { // Login as a user
|
||||
$auth_Authorization = $MadelineProto->auth->checkPassword(['password_hash' => 'bytes', ]);
|
||||
```
|
||||
|
||||
Or, if you're using [PWRTelegram](https://pwrtelegram.xyz):
|
||||
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
|
||||
|
||||
### As a bot:
|
||||
|
||||
|
@ -36,7 +36,7 @@ if (isset($number)) { // Login as a user
|
||||
$auth_CheckedPhone = $MadelineProto->auth->checkPhone(['phone_number' => 'string', ]);
|
||||
```
|
||||
|
||||
Or, if you're using [PWRTelegram](https://pwrtelegram.xyz):
|
||||
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
|
||||
|
||||
### As a bot:
|
||||
|
||||
|
@ -36,7 +36,7 @@ if (isset($number)) { // Login as a user
|
||||
$Bool = $MadelineProto->auth->dropTempAuthKeys(['except_auth_keys' => [long], ]);
|
||||
```
|
||||
|
||||
Or, if you're using [PWRTelegram](https://pwrtelegram.xyz):
|
||||
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
|
||||
|
||||
### As a bot:
|
||||
|
||||
|
@ -36,7 +36,7 @@ if (isset($number)) { // Login as a user
|
||||
$auth_ExportedAuthorization = $MadelineProto->auth->exportAuthorization(['dc_id' => int, ]);
|
||||
```
|
||||
|
||||
Or, if you're using [PWRTelegram](https://pwrtelegram.xyz):
|
||||
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
|
||||
|
||||
### As a bot:
|
||||
|
||||
|
@ -37,7 +37,7 @@ if (isset($number)) { // Login as a user
|
||||
$auth_Authorization = $MadelineProto->auth->importAuthorization(['id' => int, 'bytes' => 'bytes', ]);
|
||||
```
|
||||
|
||||
Or, if you're using [PWRTelegram](https://pwrtelegram.xyz):
|
||||
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
|
||||
|
||||
### As a bot:
|
||||
|
||||
|
@ -38,7 +38,7 @@ if (isset($number)) { // Login as a user
|
||||
$auth_Authorization = $MadelineProto->auth->importBotAuthorization(['api_id' => int, 'api_hash' => 'string', 'bot_auth_token' => 'string', ]);
|
||||
```
|
||||
|
||||
Or, if you're using [PWRTelegram](https://pwrtelegram.xyz):
|
||||
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
|
||||
|
||||
### As a bot:
|
||||
|
||||
|
@ -31,7 +31,7 @@ if (isset($number)) { // Login as a user
|
||||
$Bool = $MadelineProto->auth->logOut();
|
||||
```
|
||||
|
||||
Or, if you're using [PWRTelegram](https://pwrtelegram.xyz):
|
||||
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
|
||||
|
||||
### As a bot:
|
||||
|
||||
|
@ -36,7 +36,7 @@ if (isset($number)) { // Login as a user
|
||||
$auth_Authorization = $MadelineProto->auth->recoverPassword(['code' => 'string', ]);
|
||||
```
|
||||
|
||||
Or, if you're using [PWRTelegram](https://pwrtelegram.xyz):
|
||||
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
|
||||
|
||||
### As a bot:
|
||||
|
||||
|
@ -31,7 +31,7 @@ if (isset($number)) { // Login as a user
|
||||
$auth_PasswordRecovery = $MadelineProto->auth->requestPasswordRecovery();
|
||||
```
|
||||
|
||||
Or, if you're using [PWRTelegram](https://pwrtelegram.xyz):
|
||||
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
|
||||
|
||||
### As a bot:
|
||||
|
||||
|
@ -37,7 +37,7 @@ if (isset($number)) { // Login as a user
|
||||
$auth_SentCode = $MadelineProto->auth->resendCode(['phone_number' => 'string', 'phone_code_hash' => 'string', ]);
|
||||
```
|
||||
|
||||
Or, if you're using [PWRTelegram](https://pwrtelegram.xyz):
|
||||
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
|
||||
|
||||
### As a bot:
|
||||
|
||||
|
@ -31,7 +31,7 @@ if (isset($number)) { // Login as a user
|
||||
$Bool = $MadelineProto->auth->resetAuthorizations();
|
||||
```
|
||||
|
||||
Or, if you're using [PWRTelegram](https://pwrtelegram.xyz):
|
||||
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
|
||||
|
||||
### As a bot:
|
||||
|
||||
|
@ -40,7 +40,7 @@ if (isset($number)) { // Login as a user
|
||||
$auth_SentCode = $MadelineProto->auth->sendCode(['allow_flashcall' => Bool, 'phone_number' => 'string', 'current_number' => Bool, 'api_id' => int, 'api_hash' => 'string', ]);
|
||||
```
|
||||
|
||||
Or, if you're using [PWRTelegram](https://pwrtelegram.xyz):
|
||||
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
|
||||
|
||||
### As a bot:
|
||||
|
||||
|
@ -37,7 +37,7 @@ if (isset($number)) { // Login as a user
|
||||
$Bool = $MadelineProto->auth->sendInvites(['phone_numbers' => ['string'], 'message' => 'string', ]);
|
||||
```
|
||||
|
||||
Or, if you're using [PWRTelegram](https://pwrtelegram.xyz):
|
||||
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
|
||||
|
||||
### As a bot:
|
||||
|
||||
|
@ -38,7 +38,7 @@ if (isset($number)) { // Login as a user
|
||||
$auth_Authorization = $MadelineProto->auth->signIn(['phone_number' => 'string', 'phone_code_hash' => 'string', 'phone_code' => 'string', ]);
|
||||
```
|
||||
|
||||
Or, if you're using [PWRTelegram](https://pwrtelegram.xyz):
|
||||
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
|
||||
|
||||
### As a bot:
|
||||
|
||||
|
@ -40,7 +40,7 @@ if (isset($number)) { // Login as a user
|
||||
$auth_Authorization = $MadelineProto->auth->signUp(['phone_number' => 'string', 'phone_code_hash' => 'string', 'phone_code' => 'string', 'first_name' => 'string', 'last_name' => 'string', ]);
|
||||
```
|
||||
|
||||
Or, if you're using [PWRTelegram](https://pwrtelegram.xyz):
|
||||
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
|
||||
|
||||
### As a bot:
|
||||
|
||||
|
@ -37,7 +37,7 @@ if (isset($number)) { // Login as a user
|
||||
$Bool = $MadelineProto->bots->answerWebhookJSONQuery(['query_id' => long, 'data' => DataJSON, ]);
|
||||
```
|
||||
|
||||
Or, if you're using [PWRTelegram](https://pwrtelegram.xyz):
|
||||
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
|
||||
|
||||
### As a bot:
|
||||
|
||||
|
@ -37,7 +37,7 @@ if (isset($number)) { // Login as a user
|
||||
$DataJSON = $MadelineProto->bots->sendCustomRequest(['custom_method' => 'string', 'params' => DataJSON, ]);
|
||||
```
|
||||
|
||||
Or, if you're using [PWRTelegram](https://pwrtelegram.xyz):
|
||||
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
|
||||
|
||||
### As a bot:
|
||||
|
||||
|
@ -37,7 +37,7 @@ if (isset($number)) { // Login as a user
|
||||
$Bool = $MadelineProto->channels->checkUsername(['channel' => InputChannel, 'username' => 'string', ]);
|
||||
```
|
||||
|
||||
Or, if you're using [PWRTelegram](https://pwrtelegram.xyz):
|
||||
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
|
||||
|
||||
### As a bot:
|
||||
|
||||
|
@ -39,7 +39,7 @@ if (isset($number)) { // Login as a user
|
||||
$Updates = $MadelineProto->channels->createChannel(['broadcast' => Bool, 'megagroup' => Bool, 'title' => 'string', 'about' => 'string', ]);
|
||||
```
|
||||
|
||||
Or, if you're using [PWRTelegram](https://pwrtelegram.xyz):
|
||||
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
|
||||
|
||||
### As a bot:
|
||||
|
||||
|
@ -36,7 +36,7 @@ if (isset($number)) { // Login as a user
|
||||
$Updates = $MadelineProto->channels->deleteChannel(['channel' => InputChannel, ]);
|
||||
```
|
||||
|
||||
Or, if you're using [PWRTelegram](https://pwrtelegram.xyz):
|
||||
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
|
||||
|
||||
### As a bot:
|
||||
|
||||
|
@ -37,7 +37,7 @@ if (isset($number)) { // Login as a user
|
||||
$messages_AffectedMessages = $MadelineProto->channels->deleteMessages(['channel' => InputChannel, 'id' => [int], ]);
|
||||
```
|
||||
|
||||
Or, if you're using [PWRTelegram](https://pwrtelegram.xyz):
|
||||
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
|
||||
|
||||
### As a bot:
|
||||
|
||||
|
@ -37,7 +37,7 @@ if (isset($number)) { // Login as a user
|
||||
$messages_AffectedHistory = $MadelineProto->channels->deleteUserHistory(['channel' => InputChannel, 'user_id' => InputUser, ]);
|
||||
```
|
||||
|
||||
Or, if you're using [PWRTelegram](https://pwrtelegram.xyz):
|
||||
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
|
||||
|
||||
### As a bot:
|
||||
|
||||
|
@ -37,7 +37,7 @@ if (isset($number)) { // Login as a user
|
||||
$Bool = $MadelineProto->channels->editAbout(['channel' => InputChannel, 'about' => 'string', ]);
|
||||
```
|
||||
|
||||
Or, if you're using [PWRTelegram](https://pwrtelegram.xyz):
|
||||
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
|
||||
|
||||
### As a bot:
|
||||
|
||||
|
@ -38,7 +38,7 @@ if (isset($number)) { // Login as a user
|
||||
$Updates = $MadelineProto->channels->editAdmin(['channel' => InputChannel, 'user_id' => InputUser, 'admin_rights' => ChannelAdminRights, ]);
|
||||
```
|
||||
|
||||
Or, if you're using [PWRTelegram](https://pwrtelegram.xyz):
|
||||
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
|
||||
|
||||
### As a bot:
|
||||
|
||||
|
@ -38,7 +38,7 @@ if (isset($number)) { // Login as a user
|
||||
$Updates = $MadelineProto->channels->editBanned(['channel' => InputChannel, 'user_id' => InputUser, 'banned_rights' => ChannelBannedRights, ]);
|
||||
```
|
||||
|
||||
Or, if you're using [PWRTelegram](https://pwrtelegram.xyz):
|
||||
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
|
||||
|
||||
### As a bot:
|
||||
|
||||
|
@ -37,7 +37,7 @@ if (isset($number)) { // Login as a user
|
||||
$Updates = $MadelineProto->channels->editPhoto(['channel' => InputChannel, 'photo' => InputChatPhoto, ]);
|
||||
```
|
||||
|
||||
Or, if you're using [PWRTelegram](https://pwrtelegram.xyz):
|
||||
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
|
||||
|
||||
### As a bot:
|
||||
|
||||
|
@ -37,7 +37,7 @@ if (isset($number)) { // Login as a user
|
||||
$Updates = $MadelineProto->channels->editTitle(['channel' => InputChannel, 'title' => 'string', ]);
|
||||
```
|
||||
|
||||
Or, if you're using [PWRTelegram](https://pwrtelegram.xyz):
|
||||
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
|
||||
|
||||
### As a bot:
|
||||
|
||||
|
@ -36,7 +36,7 @@ if (isset($number)) { // Login as a user
|
||||
$ExportedChatInvite = $MadelineProto->channels->exportInvite(['channel' => InputChannel, ]);
|
||||
```
|
||||
|
||||
Or, if you're using [PWRTelegram](https://pwrtelegram.xyz):
|
||||
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
|
||||
|
||||
### As a bot:
|
||||
|
||||
|
@ -37,7 +37,7 @@ if (isset($number)) { // Login as a user
|
||||
$ExportedMessageLink = $MadelineProto->channels->exportMessageLink(['channel' => InputChannel, 'id' => int, ]);
|
||||
```
|
||||
|
||||
Or, if you're using [PWRTelegram](https://pwrtelegram.xyz):
|
||||
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
|
||||
|
||||
### As a bot:
|
||||
|
||||
|
@ -42,7 +42,7 @@ if (isset($number)) { // Login as a user
|
||||
$channels_AdminLogResults = $MadelineProto->channels->getAdminLog(['channel' => InputChannel, 'q' => 'string', 'events_filter' => ChannelAdminLogEventsFilter, 'admins' => [InputUser], 'max_id' => long, 'min_id' => long, 'limit' => int, ]);
|
||||
```
|
||||
|
||||
Or, if you're using [PWRTelegram](https://pwrtelegram.xyz):
|
||||
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
|
||||
|
||||
### As a bot:
|
||||
|
||||
|
@ -31,7 +31,7 @@ if (isset($number)) { // Login as a user
|
||||
$messages_Chats = $MadelineProto->channels->getAdminedPublicChannels();
|
||||
```
|
||||
|
||||
Or, if you're using [PWRTelegram](https://pwrtelegram.xyz):
|
||||
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
|
||||
|
||||
### As a bot:
|
||||
|
||||
|
@ -36,7 +36,7 @@ if (isset($number)) { // Login as a user
|
||||
$messages_Chats = $MadelineProto->channels->getChannels(['id' => [InputChannel], ]);
|
||||
```
|
||||
|
||||
Or, if you're using [PWRTelegram](https://pwrtelegram.xyz):
|
||||
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
|
||||
|
||||
### As a bot:
|
||||
|
||||
|
@ -36,7 +36,7 @@ if (isset($number)) { // Login as a user
|
||||
$messages_ChatFull = $MadelineProto->channels->getFullChannel(['channel' => InputChannel, ]);
|
||||
```
|
||||
|
||||
Or, if you're using [PWRTelegram](https://pwrtelegram.xyz):
|
||||
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
|
||||
|
||||
### As a bot:
|
||||
|
||||
|
@ -37,7 +37,7 @@ if (isset($number)) { // Login as a user
|
||||
$messages_Messages = $MadelineProto->channels->getMessages(['channel' => InputChannel, 'id' => [int], ]);
|
||||
```
|
||||
|
||||
Or, if you're using [PWRTelegram](https://pwrtelegram.xyz):
|
||||
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
|
||||
|
||||
### As a bot:
|
||||
|
||||
|
@ -37,7 +37,7 @@ if (isset($number)) { // Login as a user
|
||||
$channels_ChannelParticipant = $MadelineProto->channels->getParticipant(['channel' => InputChannel, 'user_id' => InputUser, ]);
|
||||
```
|
||||
|
||||
Or, if you're using [PWRTelegram](https://pwrtelegram.xyz):
|
||||
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
|
||||
|
||||
### As a bot:
|
||||
|
||||
|
@ -39,7 +39,7 @@ if (isset($number)) { // Login as a user
|
||||
$channels_ChannelParticipants = $MadelineProto->channels->getParticipants(['channel' => InputChannel, 'filter' => ChannelParticipantsFilter, 'offset' => int, 'limit' => int, ]);
|
||||
```
|
||||
|
||||
Or, if you're using [PWRTelegram](https://pwrtelegram.xyz):
|
||||
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
|
||||
|
||||
### As a bot:
|
||||
|
||||
|
@ -37,7 +37,7 @@ if (isset($number)) { // Login as a user
|
||||
$Updates = $MadelineProto->channels->inviteToChannel(['channel' => InputChannel, 'users' => [InputUser], ]);
|
||||
```
|
||||
|
||||
Or, if you're using [PWRTelegram](https://pwrtelegram.xyz):
|
||||
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
|
||||
|
||||
### As a bot:
|
||||
|
||||
|
@ -36,7 +36,7 @@ if (isset($number)) { // Login as a user
|
||||
$Updates = $MadelineProto->channels->joinChannel(['channel' => InputChannel, ]);
|
||||
```
|
||||
|
||||
Or, if you're using [PWRTelegram](https://pwrtelegram.xyz):
|
||||
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
|
||||
|
||||
### As a bot:
|
||||
|
||||
|
@ -36,7 +36,7 @@ if (isset($number)) { // Login as a user
|
||||
$Updates = $MadelineProto->channels->leaveChannel(['channel' => InputChannel, ]);
|
||||
```
|
||||
|
||||
Or, if you're using [PWRTelegram](https://pwrtelegram.xyz):
|
||||
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
|
||||
|
||||
### As a bot:
|
||||
|
||||
|
@ -37,7 +37,7 @@ if (isset($number)) { // Login as a user
|
||||
$Bool = $MadelineProto->channels->readHistory(['channel' => InputChannel, 'max_id' => int, ]);
|
||||
```
|
||||
|
||||
Or, if you're using [PWRTelegram](https://pwrtelegram.xyz):
|
||||
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
|
||||
|
||||
### As a bot:
|
||||
|
||||
|
@ -38,7 +38,7 @@ if (isset($number)) { // Login as a user
|
||||
$Bool = $MadelineProto->channels->reportSpam(['channel' => InputChannel, 'user_id' => InputUser, 'id' => [int], ]);
|
||||
```
|
||||
|
||||
Or, if you're using [PWRTelegram](https://pwrtelegram.xyz):
|
||||
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
|
||||
|
||||
### As a bot:
|
||||
|
||||
|
@ -37,7 +37,7 @@ if (isset($number)) { // Login as a user
|
||||
$Updates = $MadelineProto->channels->toggleInvites(['channel' => InputChannel, 'enabled' => Bool, ]);
|
||||
```
|
||||
|
||||
Or, if you're using [PWRTelegram](https://pwrtelegram.xyz):
|
||||
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
|
||||
|
||||
### As a bot:
|
||||
|
||||
|
@ -37,7 +37,7 @@ if (isset($number)) { // Login as a user
|
||||
$Updates = $MadelineProto->channels->toggleSignatures(['channel' => InputChannel, 'enabled' => Bool, ]);
|
||||
```
|
||||
|
||||
Or, if you're using [PWRTelegram](https://pwrtelegram.xyz):
|
||||
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
|
||||
|
||||
### As a bot:
|
||||
|
||||
|
@ -38,7 +38,7 @@ if (isset($number)) { // Login as a user
|
||||
$Updates = $MadelineProto->channels->updatePinnedMessage(['silent' => Bool, 'channel' => InputChannel, 'id' => int, ]);
|
||||
```
|
||||
|
||||
Or, if you're using [PWRTelegram](https://pwrtelegram.xyz):
|
||||
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
|
||||
|
||||
### As a bot:
|
||||
|
||||
|
@ -37,7 +37,7 @@ if (isset($number)) { // Login as a user
|
||||
$Bool = $MadelineProto->channels->updateUsername(['channel' => InputChannel, 'username' => 'string', ]);
|
||||
```
|
||||
|
||||
Or, if you're using [PWRTelegram](https://pwrtelegram.xyz):
|
||||
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
|
||||
|
||||
### As a bot:
|
||||
|
||||
|
@ -36,7 +36,7 @@ if (isset($number)) { // Login as a user
|
||||
$Bool = $MadelineProto->contacts->block(['id' => InputUser, ]);
|
||||
```
|
||||
|
||||
Or, if you're using [PWRTelegram](https://pwrtelegram.xyz):
|
||||
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
|
||||
|
||||
### As a bot:
|
||||
|
||||
|
@ -36,7 +36,7 @@ if (isset($number)) { // Login as a user
|
||||
$contacts_Link = $MadelineProto->contacts->deleteContact(['id' => InputUser, ]);
|
||||
```
|
||||
|
||||
Or, if you're using [PWRTelegram](https://pwrtelegram.xyz):
|
||||
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
|
||||
|
||||
### As a bot:
|
||||
|
||||
|
@ -36,7 +36,7 @@ if (isset($number)) { // Login as a user
|
||||
$Bool = $MadelineProto->contacts->deleteContacts(['id' => [InputUser], ]);
|
||||
```
|
||||
|
||||
Or, if you're using [PWRTelegram](https://pwrtelegram.xyz):
|
||||
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
|
||||
|
||||
### As a bot:
|
||||
|
||||
|
@ -31,7 +31,7 @@ if (isset($number)) { // Login as a user
|
||||
$Vector_of_int = $MadelineProto->contacts->exportCard();
|
||||
```
|
||||
|
||||
Or, if you're using [PWRTelegram](https://pwrtelegram.xyz):
|
||||
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
|
||||
|
||||
### As a bot:
|
||||
|
||||
|
@ -37,7 +37,7 @@ if (isset($number)) { // Login as a user
|
||||
$contacts_Blocked = $MadelineProto->contacts->getBlocked(['offset' => int, 'limit' => int, ]);
|
||||
```
|
||||
|
||||
Or, if you're using [PWRTelegram](https://pwrtelegram.xyz):
|
||||
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
|
||||
|
||||
### As a bot:
|
||||
|
||||
|
@ -36,7 +36,7 @@ if (isset($number)) { // Login as a user
|
||||
$contacts_Contacts = $MadelineProto->contacts->getContacts(['hash' => 'string', ]);
|
||||
```
|
||||
|
||||
Or, if you're using [PWRTelegram](https://pwrtelegram.xyz):
|
||||
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
|
||||
|
||||
### As a bot:
|
||||
|
||||
|
@ -31,7 +31,7 @@ if (isset($number)) { // Login as a user
|
||||
$Vector_of_ContactStatus = $MadelineProto->contacts->getStatuses();
|
||||
```
|
||||
|
||||
Or, if you're using [PWRTelegram](https://pwrtelegram.xyz):
|
||||
Or, if you're using the [PWRTelegram HTTP API](https://pwrtelegram.xyz):
|
||||
|
||||
### As a bot:
|
||||
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user