Method: messages.reportMessagesDelivery
Used for Telegram Gateway verification messages »: indicate to the server that one or more messages were received by the client, if requested by the message.report_delivery_until_date flag or the equivalent flag in push notifications.
Parameters:
| Name | Type | Description | Required |
|---|---|---|---|
| push | Bool | Must be set if the messages were received from a push notification. | Optional |
| peer | Username, chat ID, Update, Message or InputPeer | The peer where the messages were received. | Optional |
| id | Array of int | The IDs of the received messages. | Yes |
Return type: Bool
Can users use this method: YES
Can bots use this method: NO
Can bots use this method over a business connection with the businessConnectionId flag: NO
MadelineProto Example (now async for huge speed and parallelism!):
if (!file_exists('madeline.php')) {
copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php');
}
include 'madeline.php';
$MadelineProto = new \danog\MadelineProto\API('session.madeline');
$MadelineProto->start();
$Bool = $MadelineProto->messages->reportMessagesDelivery(push: $Bool, peer: $InputPeer, id: [$int, $int], );