File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -43,6 +43,8 @@ final class MessageEntityType implements Enum
4343
4444 private const TEXT_MENTION = 'text_mention ' ;
4545
46+ private const MENTION = 'mention ' ;
47+
4648 private const LIST = [
4749 self ::HASH_TAG ,
4850 self ::CASH_TAG ,
@@ -56,6 +58,7 @@ final class MessageEntityType implements Enum
5658 self ::PRE ,
5759 self ::TEXT_LINK ,
5860 self ::TEXT_MENTION ,
61+ self ::MENTION ,
5962 ];
6063
6164 /**
@@ -136,6 +139,11 @@ public static function textMention(): self
136139 return new self (self ::TEXT_MENTION );
137140 }
138141
142+ public static function mention (): self
143+ {
144+ return new self (self ::MENTION );
145+ }
146+
139147 public function equals (MessageEntityType $ type ): bool
140148 {
141149 return $ this ->value === $ type ->value ;
You can’t perform that action at this time.
0 commit comments