messages.ReportMessagesDelivery
- class pyrogram.raw.functions.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.
- Details:
Layer:
223ID:
5A6D7395
- Parameters:
peer (
InputPeer) – The peer where the messages were received.id (List of
int32-bit) – The IDs of the received messages.push (
bool, optional) – Must be set if the messages were received from a push notification.
- Returns:
bool
TL Schema
messages.reportMessagesDelivery#5a6d7395
flags:#
push:flags.0?true
peer:InputPeer
id:Vector<int>
= Bool
Parameter Tree
ReportMessagesDelivery
├── push →
true (optional)├── peer →
InputPeer│ ├──
InputPeerEmpty│ ├──
InputPeerSelf│ ├──
InputPeerChat│ │ └── chat_id →
long│ ├──
InputPeerUser│ │ ├── user_id →
long│ │ └── access_hash →
long│ ├──
InputPeerChannel│ │ ├── channel_id →
long│ │ └── access_hash →
long│ ├──
InputPeerUserFromMessage│ │ ├── peer →
InputPeer│ │ │ ├──
InputPeerEmpty│ │ │ ├──
InputPeerSelf│ │ │ ├──
InputPeerChat│ │ │ ├──
InputPeerUser│ │ │ ├──
InputPeerChannel│ │ │ ├──
InputPeerUserFromMessage│ │ │ └──
InputPeerChannelFromMessage│ │ ├── msg_id →
int│ │ └── user_id →
long│ ├── peer →
InputPeer│ │ ├──
InputPeerEmpty│ │ ├──
InputPeerSelf│ │ ├──
InputPeerChat│ │ ├──
InputPeerUser│ │ ├──
InputPeerChannel│ │ ├──
InputPeerUserFromMessage│ │ └──
InputPeerChannelFromMessage│ ├── msg_id →
int│ └── channel_id →
long└── id →
Vector < int >Example
await app.invoke(
ReportMessagesDelivery(
push=None,
peer=await app.resolve_peer(chat_id),
id=[0],
)
)