Skip to content

Commit ef2d56a

Browse files
authored
Merge pull request #6 from WalentinG/blockquote-message-entity
Added blockquote enetity type
2 parents e634072 + a61557f commit ef2d56a

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/Api/Type/Message/MessageEntityType.php

+9-1
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,8 @@ final class MessageEntityType implements Enum
5454

5555
private const STRIKETHROUGH = 'strikethrough';
5656

57+
private const BLOCKQUOTE = 'blockquote';
58+
5759
private const LIST = [
5860
self::HASH_TAG,
5961
self::CASH_TAG,
@@ -71,7 +73,8 @@ final class MessageEntityType implements Enum
7173
self::CUSTOM_EMOJI,
7274
self::UNDERLINE,
7375
self::SPOILER,
74-
self::STRIKETHROUGH
76+
self::STRIKETHROUGH,
77+
self::BLOCKQUOTE
7578
];
7679

7780
/**
@@ -174,6 +177,11 @@ public static function strikethrough(): self
174177
return new self(self::STRIKETHROUGH);
175178
}
176179

180+
public static function blockquote(): self
181+
{
182+
return new self(self::BLOCKQUOTE);
183+
}
184+
177185
public function equals(MessageEntityType $type): bool
178186
{
179187
return $this->value === $type->value;

0 commit comments

Comments
 (0)