Skip to main content

messages.clickSponsoredMessage

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

func (c *Client) MessagesClickSponsoredMessage(ctx context.Context, request *MessagesClickSponsoredMessageRequest) (bool, error)

Calling this method

client.Run(ctx, func(ctx context.Context) error {
api := client.API()

res, err := api.MessagesClickSponsoredMessage(ctx, &tg.MessagesClickSponsoredMessageRequest{
// see Parameters
})
if err != nil {
return err
}
_ = res // bool
return nil
})

Parameters

NameTypeRequiredDescription
MediaboolThe user clicked on the media
FullscreenboolThe user expanded the video to full screen, and then clicked on it.
RandomID[]byteyesThe ad's unique ID.

Returns

bool

References