Get a list of sponsored messages for a peer, see here » for more info.
Method schema is available as of layer 205. Switch »
| Name | Type | Description |
|---|---|---|
| flags | # | Flags, see TL conditional fields |
| peer | InputPeer | The currently open channel/bot. |
| msg_id | flags.0?int | Must be set when fetching sponsored messages to show on channel videos ». |
| Code | Type | Description |
|---|---|---|
| 400 | CHANNEL_INVALID | The provided channel is invalid. |
| 400 | CHANNEL_PRIVATE | You haven't joined this channel/supergroup. |