Skip to content

Commit e634072

Browse files
authored
Merge pull request #5 from WalentinG/custom-emoji-message-entity
Added custom_emoji message entity type
2 parents 82a2e8c + 323590d commit e634072

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/Api/Type/Message/MessageEntityType.php

+9
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@ final class MessageEntityType implements Enum
4545

4646
private const MENTION = 'mention';
4747

48+
49+
private const CUSTOM_EMOJI = 'custom_emoji';
50+
4851
private const UNDERLINE = 'underline';
4952

5053
private const SPOILER = 'spoiler';
@@ -65,6 +68,7 @@ final class MessageEntityType implements Enum
6568
self::TEXT_LINK,
6669
self::TEXT_MENTION,
6770
self::MENTION,
71+
self::CUSTOM_EMOJI,
6872
self::UNDERLINE,
6973
self::SPOILER,
7074
self::STRIKETHROUGH
@@ -150,6 +154,11 @@ public static function mention(): self
150154
return new self(self::MENTION);
151155
}
152156

157+
public static function customEmoji(): self
158+
{
159+
return new self(self::CUSTOM_EMOJI);
160+
}
161+
153162
public static function underline(): self
154163
{
155164
return new self(self::UNDERLINE);

0 commit comments

Comments
 (0)