mirror of
https://github.com/BushlanovDev/max-bot-api-client-php.git
synced 2026-10-07 04:20:42 +00:00
Add fields and markup added in schema 0.0.33
- Recipient::$postId: the commented post, set for comments - ContactAttachmentPayload::$hash: hash of the VCF info - ChatPatch: document the description field (up to 16000 chars, empty string removes it) - QuoteMarkup and MarkupType::Quote. createMarkupElement() threw "Unknown or unsupported markup type" on a quote block, so a message with a quote could not be parsed at all New constructor parameters are optional and last, so existing positional calls keep working; toArray() of these models now also carries the new keys.
This commit is contained in:
@@ -32,6 +32,7 @@ final class MessageTest extends TestCase
|
||||
'chat_type' => 'dialog',
|
||||
'user_id' => 123,
|
||||
'chat_id' => null,
|
||||
'post_id' => null,
|
||||
],
|
||||
'body' => [
|
||||
'mid' => 'mid.456.xyz',
|
||||
|
||||
Reference in New Issue
Block a user