File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff 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 );
You can’t perform that action at this time.
0 commit comments