1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
declare(strict_types=1); |
4
|
|
|
|
5
|
|
|
namespace Zanzara\Telegram\Type; |
6
|
|
|
|
7
|
|
|
/** |
8
|
|
|
* This object represents a chat photo. |
9
|
|
|
* |
10
|
|
|
* More on https://core.telegram.org/bots/api#chatphoto |
11
|
|
|
*/ |
12
|
|
|
class ChatPhoto |
13
|
|
|
{ |
14
|
|
|
|
15
|
|
|
/** |
16
|
|
|
* File identifier of small (160x160) chat photo. This file_id can be used only for photo download and only for as long |
17
|
|
|
* as the photo is not changed. |
18
|
|
|
* |
19
|
|
|
* @var string |
20
|
|
|
*/ |
21
|
|
|
private $small_file_id; |
22
|
|
|
|
23
|
|
|
/** |
24
|
|
|
* Unique file identifier of small (160x160) chat photo, which is supposed to be the same over time and for different |
25
|
|
|
* bots. Can't be used to download or reuse the file. |
26
|
|
|
* |
27
|
|
|
* @var string |
28
|
|
|
*/ |
29
|
|
|
private $small_file_unique_id; |
30
|
|
|
|
31
|
|
|
/** |
32
|
|
|
* File identifier of big (640x640) chat photo. This file_id can be used only for photo download and only for as long as |
33
|
|
|
* the photo is not changed. |
34
|
|
|
* |
35
|
|
|
* @var string |
36
|
|
|
*/ |
37
|
|
|
private $big_file_id; |
38
|
|
|
|
39
|
|
|
/** |
40
|
|
|
* Unique file identifier of big (640x640) chat photo, which is supposed to be the same over time and for different |
41
|
|
|
* bots. Can't be used to download or reuse the file. |
42
|
|
|
* |
43
|
|
|
* @var string |
44
|
|
|
*/ |
45
|
|
|
private $big_file_unique_id; |
46
|
|
|
|
47
|
|
|
/** |
48
|
|
|
* @return string |
49
|
|
|
*/ |
50
|
|
|
public function getSmallFileId(): string |
51
|
|
|
{ |
52
|
|
|
return $this->small_file_id; |
53
|
|
|
} |
54
|
|
|
|
55
|
|
|
/** |
56
|
|
|
* @param string $small_file_id |
57
|
|
|
*/ |
58
|
|
|
public function setSmallFileId(string $small_file_id): void |
59
|
|
|
{ |
60
|
|
|
$this->small_file_id = $small_file_id; |
61
|
|
|
} |
62
|
|
|
|
63
|
|
|
/** |
64
|
|
|
* @return string |
65
|
|
|
*/ |
66
|
|
|
public function getSmallFileUniqueId(): string |
67
|
|
|
{ |
68
|
|
|
return $this->small_file_unique_id; |
69
|
|
|
} |
70
|
|
|
|
71
|
|
|
/** |
72
|
|
|
* @param string $small_file_unique_id |
73
|
|
|
*/ |
74
|
|
|
public function setSmallFileUniqueId(string $small_file_unique_id): void |
75
|
|
|
{ |
76
|
|
|
$this->small_file_unique_id = $small_file_unique_id; |
77
|
|
|
} |
78
|
|
|
|
79
|
|
|
/** |
80
|
|
|
* @return string |
81
|
|
|
*/ |
82
|
|
|
public function getBigFileId(): string |
83
|
|
|
{ |
84
|
|
|
return $this->big_file_id; |
85
|
|
|
} |
86
|
|
|
|
87
|
|
|
/** |
88
|
|
|
* @param string $big_file_id |
89
|
|
|
*/ |
90
|
|
|
public function setBigFileId(string $big_file_id): void |
91
|
|
|
{ |
92
|
|
|
$this->big_file_id = $big_file_id; |
93
|
|
|
} |
94
|
|
|
|
95
|
|
|
/** |
96
|
|
|
* @return string |
97
|
|
|
*/ |
98
|
|
|
public function getBigFileUniqueId(): string |
99
|
|
|
{ |
100
|
|
|
return $this->big_file_unique_id; |
101
|
|
|
} |
102
|
|
|
|
103
|
|
|
/** |
104
|
|
|
* @param string $big_file_unique_id |
105
|
|
|
*/ |
106
|
|
|
public function setBigFileUniqueId(string $big_file_unique_id): void |
107
|
|
|
{ |
108
|
|
|
$this->big_file_unique_id = $big_file_unique_id; |
109
|
|
|
} |
110
|
|
|
|
111
|
|
|
} |