stats.GetMessagePublicForwards

class pyrogram.raw.functions.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.

Details:
  • Layer: 223

  • ID: 5F150144

Parameters:
channel (InputChannel):

Source channel

msg_id (int 32-bit):

Source message ID

offset (str):

Offset 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).

limit (int 32-bit):

Maximum number of results to return, see pagination

Returns:

stats.PublicForwards

TL Schema

stats.getMessagePublicForwards#5f150144
channel:InputChannel
msg_id:int
offset:string
limit:int

= stats.PublicForwards

Parameter Tree

GetMessagePublicForwards
├── channelInputChannel
│ ├── InputChannelEmpty
│ ├── InputChannel
│ │ ├── channel_idlong
│ │ └── access_hashlong
│ ├── peerInputPeer
│ │ ├── InputPeerEmpty
│ │ ├── InputPeerSelf
│ │ ├── InputPeerChat
│ │ ├── InputPeerUser
│ │ ├── InputPeerChannel
│ │ ├── InputPeerUserFromMessage
│ │ └── InputPeerChannelFromMessage
│ ├── msg_idint
│ └── channel_idlong
├── msg_idint
├── offsetstring
└── limitint

Example

await app.invoke(
    GetMessagePublicForwards(
        channel=await app.resolve_channel(chat_id),
        msg_id=0,
        offset="text",
        limit=0,
    )
)