Layer 220
StatsGetMessagePublicForwards
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.
method
Users
Parameters
| Name | Type | Description |
|---|---|---|
| Channel | InputChannel | Source channel |
| MsgId | int | Source message ID |
| Offset | string | 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 | Maximum number of results to return, see pagination |
Returns
stats.PublicForwardsPossible Errors
| Code | Type | Description |
|---|---|---|
| 400 | CHANNEL_INVALID | The provided channel is invalid. |
| 400 | CHAT_ADMIN_REQUIRED | You must be an admin in this chat to do this. |
| 400 | MESSAGE_ID_INVALID | The provided message id is invalid. |
| 400 | PEER_ID_INVALID | The provided peer id is invalid. |
Gogram Example
// StatsGetMessagePublicForwards - positional arguments result, err := client.StatsGetMessagePublicForwards(&tg.InputChannel{ChannelID: int64(123456789), AccessHash: int64(0)}, 0, "...", 0) if err != nil { // handle error } // result is *tg.StatsPublicForwards