From cf30bbff3c79b600326b8f0235f2de78fce90460 Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Tue, 10 Sep 2024 15:30:35 +0200 Subject: [PATCH] Bump --- docs | 2 +- src/EventHandler/Message/Entities/MessageEntity.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs b/docs index 3b96f262c..ebe6a3f62 160000 --- a/docs +++ b/docs @@ -1 +1 @@ -Subproject commit 3b96f262cb4399f0b6bfe775840cacac24bdab3b +Subproject commit ebe6a3f62fb93a903c7b203d0ab51cd09380bdb9 diff --git a/src/EventHandler/Message/Entities/MessageEntity.php b/src/EventHandler/Message/Entities/MessageEntity.php index 30ca3e0aa..a80f237a6 100644 --- a/src/EventHandler/Message/Entities/MessageEntity.php +++ b/src/EventHandler/Message/Entities/MessageEntity.php @@ -44,7 +44,7 @@ abstract class MessageEntity implements JsonSerializable 'italic', 'messageEntityItalic' => new Italic($entity['offset'], $entity['length']), 'url', 'messageEntityUrl' => new Url($entity['offset'], $entity['length']), 'code', 'messageEntityCode' => new Code($entity['offset'], $entity['length']), - 'pre', 'messageEntityPre' => new Pre($entity['offset'], $entity['length'], $entity['language']), + 'pre', 'messageEntityPre' => new Pre($entity['offset'], $entity['length'], $entity['language'] ?? ''), 'text_link', 'messageEntityTextUrl' => new TextUrl($entity['offset'], $entity['length'], $entity['url']), 'text_mention', 'messageEntityMentionName' => new MentionName($entity['offset'], $entity['length'], $entity['user_id'] ?? $entity['user']['id']), 'inputMessageEntityMentionName' => new InputMentionName($entity['offset'], $entity['length'], $entity['user_id']),