mirror of
https://github.com/danog/MadelineProtoDocs.git
synced 2024-11-26 12:25:08 +01:00
16 lines
544 B
Markdown
16 lines
544 B
Markdown
|
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);
|
||
|
```
|