-
Notifications
You must be signed in to change notification settings - Fork 172
/
Document.php
54 lines (45 loc) · 1 KB
/
Document.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<?php
declare(strict_types = 1);
namespace unreal4u\Telegram\Types;
use unreal4u\Abstracts\TelegramTypes;
/**
* This object represents a general file (as opposed to photos, voice messages and audio files).
*
* Objects defined as-is december 2015
*
* @see https://core.telegram.org/bots/api#document
*/
class Document extends TelegramTypes
{
/**
* Unique identifier for this file
* @var string
*/
public $file_id = '';
/**
* Optional. Document thumbnail as defined by sender
* @var PhotoSize
*/
public $thumb = null;
/**
* Optional. Original filename as defined by sender
* @var string
*/
public $file_name = '';
/**
* Optional. MIME type of the file as defined by sender
* @var string
*/
public $mime_type = '';
/**
* Optional. File size
* @var int
*/
public $file_size = 0;
protected function mapSubObjects(): array
{
return [
'thumb' => 'PhotoSize',
];
}
}