Skip to main content

stories.startLive

No description available.

func (c *Client) StoriesStartLive(ctx context.Context, request *StoriesStartLiveRequest) (UpdatesClass, error)

Calling this method

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

res, err := api.StoriesStartLive(ctx, &tg.StoriesStartLiveRequest{
// see Parameters
})
if err != nil {
return err
}
_ = res // UpdatesClass
return nil
})

Parameters

NameTypeRequiredDescription
PinnedboolPinned field of StoriesStartLiveRequest.
NoforwardsboolNoforwards field of StoriesStartLiveRequest.
RtmpStreamboolRtmpStream field of StoriesStartLiveRequest.
PeerInputPeerClassyesPeer field of StoriesStartLiveRequest.
CaptionstringCaption field of StoriesStartLiveRequest.
Entities[]MessageEntityClassMessage entities for styled text
PrivacyRules[]InputPrivacyRuleClassyesPrivacyRules field of StoriesStartLiveRequest.
RandomIDint64yesRandomID field of StoriesStartLiveRequest.
MessagesEnabledboolMessagesEnabled field of StoriesStartLiveRequest.
SendPaidMessagesStarsint64SendPaidMessagesStars field of StoriesStartLiveRequest.

Returns

UpdatesClass

Possible errors

CodeTypeDescription
400PEER_ID_INVALIDThe provided peer id is invalid.

References