Refactor array handling and InputMedia class structure
This commit is contained in:
parent
3ed338d49a
commit
9dd11af87d
11 changed files with 56 additions and 339 deletions
|
@ -246,7 +246,7 @@
|
|||
$object->title = $data['title'] ?? null;
|
||||
$object->caption = $data['caption'] ?? null;
|
||||
$object->parse_mode = $data['parse_mode'] ?? null;
|
||||
$object->caption_entities = array_map(fn(array $items) => MessageEntity::fromArray($items), $data['caption_entities']);
|
||||
$object->caption_entities = array_map(fn(array $items) => MessageEntity::fromArray($items), $data['caption_entities'] ?? []);
|
||||
$object->voice_duration = $data['voice_duration'] ?? null;
|
||||
$object->reply_markup = InlineKeyboardMarkup::fromArray($data['reply_markup'] ?? []);
|
||||
$object->input_message_content = InputMessageContent::fromArray($data['input_message_content'] ?? []);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue