messages.getSponsoredMessages
Get a list of sponsored messages for a peer, see here » for more info.
Get a list of [sponsored messages for a peer, see here »](https://core.telegram.org/api/sponsored-messages.md) for more info.
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
peer | InputPeer | はい | The currently open channel/bot. |
msg_id | int | いいえ | Must be set when fetching [sponsored messages to show on channel videos »](https://core.telegram.org/api/sponsored-messages.md#getting-sponsored-video-advertisements). |
レスポンス
messages.SponsoredMessages
MTProto RPC
- 400 · CHANNEL_INVALID — The provided channel is invalid.
- 400 · CHANNEL_PRIVATE — You haven't joined this channel/supergroup.
- 400 · MESSAGE_ID_INVALID — The provided message id is invalid.
- 400 · MSG_ID_INVALID — Invalid message ID provided.