-
Notifications
You must be signed in to change notification settings - Fork 174
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
TelegramTypes: added ForumTopicCreated, ForumTopicClosed, ForumTopicE…
…dited and ForumTopicReopened
- Loading branch information
Showing
4 changed files
with
101 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace unreal4u\TelegramAPI\Telegram\Types; | ||
|
||
use unreal4u\TelegramAPI\Abstracts\TelegramTypes; | ||
|
||
/** | ||
* This object represents a service message about a forum topic closed in the chat. Currently holds no information. | ||
* | ||
* Objects defined as-is march 2023, Bot API v6.3 | ||
* | ||
* @see https://core.telegram.org/bots/api#forumtopicclosed | ||
*/ | ||
class ForumTopicClosed extends TelegramTypes | ||
{ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace unreal4u\TelegramAPI\Telegram\Types; | ||
|
||
use unreal4u\TelegramAPI\Abstracts\TelegramTypes; | ||
|
||
/** | ||
* This object represents a service message about a new forum topic created in the chat. | ||
* | ||
* Objects defined as-is march 2023, Bot API v6.3 | ||
* | ||
* @see https://core.telegram.org/bots/api#forumtopiccreated | ||
*/ | ||
class ForumTopicCreated extends TelegramTypes | ||
{ | ||
/** | ||
* Name of the topic | ||
* @var string | ||
*/ | ||
public $name = ''; | ||
|
||
/** | ||
* Color of the topic icon in RGB format | ||
* @var int | ||
*/ | ||
public $icon_color = 0; | ||
|
||
/** | ||
* Optional. Unique identifier of the custom emoji shown as the topic icon | ||
* @var string | ||
*/ | ||
public $icon_custom_emoji_id = ''; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace unreal4u\TelegramAPI\Telegram\Types; | ||
|
||
use unreal4u\TelegramAPI\Abstracts\TelegramTypes; | ||
|
||
/** | ||
* This object represents a service message about an edited forum topic | ||
* | ||
* Objects defined as-is march 2023, Bot API v6.3 | ||
* | ||
* @see https://core.telegram.org/bots/api#forumtopicedited | ||
*/ | ||
class ForumTopicEdited extends TelegramTypes | ||
{ | ||
/** | ||
* Optional. New name of the topic, if it was edited | ||
* @var string | ||
*/ | ||
public $name = ''; | ||
|
||
/** | ||
* Optional. New identifier of the custom emoji shown as the topic icon, if it was edited; an empty string if the | ||
* icon was removed | ||
* @var string | ||
*/ | ||
public $icon_custom_emoji_id = ''; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace unreal4u\TelegramAPI\Telegram\Types; | ||
|
||
use unreal4u\TelegramAPI\Abstracts\TelegramTypes; | ||
|
||
/** | ||
* This object represents a service message about a forum topic reopened in the chat. Currently holds no information. | ||
* | ||
* Objects defined as-is march 2023, Bot API v6.3 | ||
* | ||
* @see https://core.telegram.org/bots/api#forumtopicreopened | ||
*/ | ||
class ForumTopicReopened extends TelegramTypes | ||
{ | ||
} |