messages.getSponsoredMessages

Get a list of sponsored messages for a peer, see here » for more info.

messages.sponsoredMessages#c9ee1d87 flags:# posts_between:flags.0?int messages:Vector<SponsoredMessage> chats:Vector<Chat> users:Vector<User> = messages.SponsoredMessages;
messages.sponsoredMessagesEmpty#1839490f = messages.SponsoredMessages;
---functions---
messages.getSponsoredMessages#9bd2f439 peer:InputPeer = messages.SponsoredMessages;

Parameters

Name Type Description
peer InputPeer The currently open channel/bot.

Result

messages.SponsoredMessages

Bots can use this method

Related pages

Sponsored messages