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']),