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
Pinnedbool—Pinned field of StoriesStartLiveRequest.
Noforwardsbool—Noforwards field of StoriesStartLiveRequest.
RtmpStreambool—RtmpStream field of StoriesStartLiveRequest.
PeerInputPeerClassyesPeer field of StoriesStartLiveRequest.
Captionstring—Caption field of StoriesStartLiveRequest.
Entities[]MessageEntityClass—Message entities for styled text
PrivacyRules[]InputPrivacyRuleClassyesPrivacyRules field of StoriesStartLiveRequest.
RandomIDint64yesRandomID field of StoriesStartLiveRequest.
MessagesEnabledbool—MessagesEnabled field of StoriesStartLiveRequest.
SendPaidMessagesStarsint64—SendPaidMessagesStars field of StoriesStartLiveRequest.

Returns​

UpdatesClass

Possible errors​

CodeTypeDescription
400PEER_ID_INVALIDThe provided peer id is invalid.

References​