Layer 220
constructor
sponsoredPeer#c69708d3 flags:# random_id:bytes peer:Peer sponsor_info:flags.0?string additional_info:flags.1?string = SponsoredPeer;

Parameters

Name Type Description
Flags # Flags, see TL conditional fields
RandomId bytes ID of the sponsored peer, to be passed to messages. view Sponsored Message, messages. click Sponsored Message or messages. report Sponsored Message (the same methods used for sponsored messages &raquo ).
Peer Peer The sponsored peer.
SponsorInfo flags.0?string If set, contains additional information about the sponsor to be shown along with the peer.
AdditionalInfo flags.1?string If set, contains additional information about the sponsored message to be shown along with the peer.

Returns

SponsoredPeer

Gogram Example

// Creating SponsoredPeer constructor
obj := &tg.SponsoredPeer{
    RandomId: []byte{},
    Peer: &tg.Peer{},

    // Optional fields:
    // SponsorInfo: "...",
    // AdditionalInfo: "...",
}