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
| Name | Type | Required | Description |
|---|---|---|---|
Pinned | bool | — | Pinned field of StoriesStartLiveRequest. |
Noforwards | bool | — | Noforwards field of StoriesStartLiveRequest. |
RtmpStream | bool | — | RtmpStream field of StoriesStartLiveRequest. |
Peer | InputPeerClass | yes | Peer field of StoriesStartLiveRequest. |
Caption | string | — | Caption field of StoriesStartLiveRequest. |
Entities | []MessageEntityClass | — | Message entities for styled text |
PrivacyRules | []InputPrivacyRuleClass | yes | PrivacyRules field of StoriesStartLiveRequest. |
RandomID | int64 | yes | RandomID field of StoriesStartLiveRequest. |
MessagesEnabled | bool | — | MessagesEnabled field of StoriesStartLiveRequest. |
SendPaidMessagesStars | int64 | — | SendPaidMessagesStars field of StoriesStartLiveRequest. |
Returns
Possible errors
| Code | Type | Description |
|---|---|---|
| 400 | PEER_ID_INVALID | The provided peer id is invalid. |
References
- Official documentation
- Generated Go reference
- TL definition:
stories.startLive#d069ccde