messages.GetMessagesViews
- class pyrogram.raw.functions.messages.GetMessagesViews
Get and increase the view counter of a message sent or forwarded from a channel
- Details:
Layer:
223ID:
5784D3E1
- Parameters:
peer (
InputPeer) – Peer where the message was foundid (List of
int32-bit) – ID of messageincrement (
bool) – Whether to mark the message as viewed and increment the view counter
- Returns:
TL Schema
messages.getMessagesViews#5784d3e1
peer:InputPeer
id:Vector<int>
increment:Bool
= messages.MessageViews
Parameter Tree
GetMessagesViews
├── 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 >└── increment →
BoolExample
await app.invoke(
GetMessagesViews(
peer=await app.resolve_peer(chat_id),
id=[0],
increment=True,
)
)