Layer 224
method

Parameters

Name Type Description
Dark flags.0?true Pass true if a URL with the dark theme must be returned
Peer InputPeer Chat identifier
Params string Parameters from tg://statsrefresh?params=****** link

Returns

StatsURL

Gogram Example

// MessagesGetStatsUrl - using Params struct
result, err := client.MessagesGetStatsUrl(&tg.MessagesGetStatsUrlParams{
    Peer: &tg.InputPeerUser{UserID: int64(777000)},
    Params: "Hello, World!",

    // Optional fields:
    // Dark: true,
})
if err != nil {
    // handle error
}
// result is *tg.StatsUrl

Possible Errors

Code Type Description
400 PEER_ID_INVALID The provided peer id is invalid.