-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathForumTopicCreated.php
More file actions
47 lines (39 loc) · 1.54 KB
/
ForumTopicCreated.php
File metadata and controls
47 lines (39 loc) · 1.54 KB
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 service message about a new forum topic created in the chat.
*/
class ForumTopicCreated extends Type
{
/** Name of the topic */
public string $name;
/** Color of the topic icon in RGB format */
public int $icon_color;
/** <em>Optional</em>. Unique identifier of the custom emoji shown as the topic icon */
public ?string $icon_custom_emoji_id = null;
/** <em>Optional</em>. <em>True</em>, if the name of the topic wasn't specified explicitly by its creator and likely needs to be changed by the bot */
public ?bool $is_name_implicit = null;
/**
* @param string $name Name of the topic
* @param int $icon_color Color of the topic icon in RGB format
* @param string $icon_custom_emoji_id <em>Optional</em>. Unique identifier of the custom emoji shown as the topic icon
* @param bool $is_name_implicit <em>Optional</em>. <em>True</em>, if the name of the topic wasn't specified explicitly by its creator and likely needs to be changed by the bot
*/
public static function make(
string $name,
int $icon_color,
?string $icon_custom_emoji_id = null,
?bool $is_name_implicit = null,
): static {
return new static([
'name' => $name,
'icon_color' => $icon_color,
'icon_custom_emoji_id' => $icon_custom_emoji_id,
'is_name_implicit' => $is_name_implicit,
]);
}
}