stats.getMessagePublicForwards #

Obtains a list of messages, indicating to which other public channels was a channel message forwarded.
Will return a list of messages with peer_id equal to the public channel to which this message was forwarded.

Layer 223

stats.publicForwards#93037e20 flags:# count:int forwards:Vector<PublicForward> next_offset:flags.0?string chats:Vector<Chat> users:Vector<User> = stats.PublicForwards;
---functions---
stats.getMessagePublicForwards#5f150144 channel:InputChannel msg_id:int offset:string limit:int = stats.PublicForwards;

Parameters #

NameTypeDescription
channelInputChannelSource channel
msg_idintSource message ID
offsetstringOffset for pagination, empty string on first call, then use the next_offset field of the returned constructor (if present, otherwise no more results are available).
limitintMaximum number of results to return, see pagination

Result #

stats.PublicForwards

Only users can use this method #

Possible errors #

CodeTypeDescription
400CHANNEL_INVALIDThe provided channel is invalid.
400CHAT_ADMIN_REQUIREDYou must be an admin in this chat to do this.
400MESSAGE_ID_INVALIDThe provided message id is invalid.
400PEER_ID_INVALIDThe provided peer id is invalid.

Pagination in the API #

How to fetch results from large lists of objects.

message #

A message