Skip to content
This repository was archived by the owner on Sep 2, 2025. It is now read-only.

Commit 5d1da67

Browse files
committed
Caption entities support
1 parent 1a5e2f0 commit 5d1da67

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/Telegram/Types/Message.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,13 @@ class Message extends TelegramTypes
103103
*/
104104
public $entities = [];
105105

106+
/**
107+
* Optional. For messages with a caption, special entities like usernames, URLs, bot commands, etc. that appear in
108+
* the caption
109+
* @var MessageEntityArray
110+
*/
111+
public $caption_entities = [];
112+
106113
/**
107114
* Optional. Message is an audio file, information about the file
108115
* @var Audio
@@ -298,6 +305,7 @@ protected function mapSubObjects(string $key, array $data): TelegramTypes
298305
case 'pinned_message':
299306
return new Message($data, $this->logger);
300307
case 'entities':
308+
case 'caption_entities':
301309
return new MessageEntityArray($data, $this->logger);
302310
case 'audio':
303311
return new Audio($data, $this->logger);

0 commit comments

Comments
 (0)