MadelineProtoDocs/template/Updates.md

16 lines
544 B
Markdown
Raw Normal View History

2024-05-01 14:53:46 +02:00
You can use the following methods to extract information from this constructor:
```php
// Extract an array of Update constructors
$vector_of_update = $MadelineProto->extractUpdates($Updates);
// Extract an updateNewMessage, updateNewChannelMessage, updateEditMessage, updateEditChannelMessage constructor
$message_update = $MadelineProto->extractMessageUpdate($Updates);
// Extract a message constructor
$message = $MadelineProto->extractMessage($Updates);
// Extract a message ID
$message = $MadelineProto->extractMessageId($Updates);
```