forked from telepath-php/telepath
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ChatPhoto.php
47 lines (39 loc) · 2.19 KB
/
ChatPhoto.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
<?php
/**
* This file is auto-generated.
*/
namespace Telepath\Telegram;
use Telepath\Types\Type;
/**
* This object represents a chat photo.
*/
class ChatPhoto extends Type
{
/** File identifier of small (160x160) chat photo. This file_id can be used only for photo download and only for as long as the photo is not changed. */
public string $small_file_id;
/** Unique file identifier of small (160x160) chat photo, which is supposed to be the same over time and for different bots. Can't be used to download or reuse the file. */
public string $small_file_unique_id;
/** File identifier of big (640x640) chat photo. This file_id can be used only for photo download and only for as long as the photo is not changed. */
public string $big_file_id;
/** Unique file identifier of big (640x640) chat photo, which is supposed to be the same over time and for different bots. Can't be used to download or reuse the file. */
public string $big_file_unique_id;
/**
* @param string $small_file_id File identifier of small (160x160) chat photo. This file_id can be used only for photo download and only for as long as the photo is not changed.
* @param string $small_file_unique_id Unique file identifier of small (160x160) chat photo, which is supposed to be the same over time and for different bots. Can't be used to download or reuse the file.
* @param string $big_file_id File identifier of big (640x640) chat photo. This file_id can be used only for photo download and only for as long as the photo is not changed.
* @param string $big_file_unique_id Unique file identifier of big (640x640) chat photo, which is supposed to be the same over time and for different bots. Can't be used to download or reuse the file.
*/
public static function make(
string $small_file_id,
string $small_file_unique_id,
string $big_file_id,
string $big_file_unique_id,
): static {
return new static([
'small_file_id' => $small_file_id,
'small_file_unique_id' => $small_file_unique_id,
'big_file_id' => $big_file_id,
'big_file_unique_id' => $big_file_unique_id,
]);
}
}