messages.clickSponsoredMessage

Informs the server that the user has either:

  • Clicked on a link in the sponsored message
  • Has opened a sponsored chat or a sponsored website via the associated button
  • Has opened the sponsored chat via the sponsored message name, the sponsored message photo, or a mention in the sponsored message

 Method schema is available as of layer 192. Switch »

Parameters

Name Type Description
flags # Flags, see TL conditional fields
media flags.0?true  
fullscreen flags.1?true  
peer InputPeer The channel/bot where the ad is located
random_id bytes The ad's unique ID.

Result

Bool

Bots can use this method

Related pages

Sponsored messages