Layer 224
method
stories.startLive#d069ccde flags:# pinned:flags.2?true noforwards:flags.4?true rtmp_stream:flags.5?true peer:InputPeer caption:flags.0?string entities:flags.1?Vector<MessageEntity> privacy_rules:Vector<InputPrivacyRule> random_id:long messages_enabled:flags.6?Bool send_paid_messages_stars:flags.7?long = Updates;

Parameters

Name Type Description
Pinned flags.2?true
Noforwards flags.4?true
RtmpStream flags.5?true
Peer InputPeer Peer for story
Caption flags.0?string Optional caption
Entities Vector<MessageEntity> Optional formatting entities
PrivacyRules Vector<InputPrivacyRule> Privacy rules
RandomId long Random ID
MessagesEnabled flags.6?Bool Enable messages
SendPaidMessagesStars flags.7?long Paid message cost

Returns

Updates

Gogram Example

// StoriesStartLive - using Params struct
result, err := client.StoriesStartLive(&tg.StoriesStartLiveParams{
    Peer: &tg.InputPeerUser{UserID: int64(777000)},
    PrivacyRules: []tg.InputPrivacyRule{&tg.InputPrivacyValueAllowAll{}},
    RandomId: int64(1234567890),

    // Optional fields:
    // Pinned: true,
    // Noforwards: true,
    // RtmpStream: true,
    // Caption: "Hello, World!",
    // ...
})
if err != nil {
    // handle error
}
// result is *tg.Updates