1.1 KiB
1.1 KiB
title | description |
---|---|
document | Describes document of any type |
Constructor: document
Describes document of any type
Attributes:
Name | Type | Required | Description |
---|---|---|---|
file_name | string | Yes | Original name of a file as defined by sender |
mime_type | string | Yes | MIME type of file as defined by sender |
thumb | photoSize | Yes | Document thumb as defined by sender, nullable |
document | file | Yes | File with document |
Type: Document
Example:
$document = ['_' => 'document', 'file_name' => 'string', 'mime_type' => 'string', 'thumb' => photoSize, 'document' => file];
PWRTelegram json-encoded version:
{"_": "document", "file_name": "string", "mime_type": "string", "thumb": photoSize, "document": file}
Or, if you're into Lua:
document={_='document', file_name='string', mime_type='string', thumb=photoSize, document=file}