Skip to content

Commit

Permalink
TelegramTypes: added ForumTopicCreated, ForumTopicClosed, ForumTopicE…
Browse files Browse the repository at this point in the history
…dited and ForumTopicReopened
  • Loading branch information
DJTommek committed Mar 19, 2023
1 parent 70f478d commit c612fea
Show file tree
Hide file tree
Showing 4 changed files with 101 additions and 0 deletions.
18 changes: 18 additions & 0 deletions src/Telegram/Types/ForumTopicClosed.php
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
{
}
35 changes: 35 additions & 0 deletions src/Telegram/Types/ForumTopicCreated.php
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 = '';
}
30 changes: 30 additions & 0 deletions src/Telegram/Types/ForumTopicEdited.php
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 = '';
}
18 changes: 18 additions & 0 deletions src/Telegram/Types/ForumTopicReopened.php
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
{
}

0 comments on commit c612fea

Please sign in to comment.