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.