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
43
43
44
44
private const TEXT_MENTION = 'text_mention ' ;
45
45
46
+ private const MENTION = 'mention ' ;
47
+
46
48
private const LIST = [
47
49
self ::HASH_TAG ,
48
50
self ::CASH_TAG ,
@@ -56,6 +58,7 @@ final class MessageEntityType implements Enum
56
58
self ::PRE ,
57
59
self ::TEXT_LINK ,
58
60
self ::TEXT_MENTION ,
61
+ self ::MENTION ,
59
62
];
60
63
61
64
/**
@@ -136,6 +139,11 @@ public static function textMention(): self
136
139
return new self (self ::TEXT_MENTION );
137
140
}
138
141
142
+ public static function mention (): self
143
+ {
144
+ return new self (self ::MENTION );
145
+ }
146
+
139
147
public function equals (MessageEntityType $ type ): bool
140
148
{
141
149
return $ this ->value === $ type ->value ;
You can’t perform that action at this time.
0 commit comments