messages.clickSponsoredMessage #

Informs the server that the user has interacted with a sponsored message in one of the ways listed here ».

Layer 223

boolFalse#bc799737 = Bool;
boolTrue#997275b5 = Bool;
---functions---
messages.clickSponsoredMessage#8235057e flags:# media:flags.0?true fullscreen:flags.1?true random_id:bytes = Bool;

Parameters #

NameTypeDescription
flags#Flags, see TL conditional fields
mediaflags.0?trueThe user clicked on the media
fullscreenflags.1?trueThe user expanded the video to full screen, and then clicked on it.
random_idbytesThe ad's unique ID. See here » for more info on random ID deduplication and updateMessageID mapping.

Result #

Bool

Only users can use this method #

Working with Updates #

How to subscribe to updates and handle them properly.

How clients should fetch, display and interact with sponsored messages.