1
0
mirror of https://github.com/danog/MadelineProto.git synced 2024-11-26 17:24:40 +01:00
This commit is contained in:
Daniil Gentili 2024-09-10 15:30:35 +02:00
parent 30c786eb4d
commit cf30bbff3c
2 changed files with 2 additions and 2 deletions

2
docs

@ -1 +1 @@
Subproject commit 3b96f262cb4399f0b6bfe775840cacac24bdab3b
Subproject commit ebe6a3f62fb93a903c7b203d0ab51cd09380bdb9

View File

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