phone.getGroupCallStreamRtmpUrl
Get RTMP URL and stream key for RTMP livestreams. Can be used even before creating the actual RTMP livestream with phone.createGroupCall (the rtmp_stream flag must be set).
func (c *Client) PhoneGetGroupCallStreamRtmpURL(ctx context.Context, request *PhoneGetGroupCallStreamRtmpURLRequest) (*PhoneGroupCallStreamRtmpURL, error)
Calling this method
client.Run(ctx, func(ctx context.Context) error {
api := client.API()
res, err := api.PhoneGetGroupCallStreamRtmpURL(ctx, &tg.PhoneGetGroupCallStreamRtmpURLRequest{
// see Parameters
})
if err != nil {
return err
}
_ = res // *PhoneGroupCallStreamRtmpURL
return nil
})
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
LiveStory | bool | — | LiveStory field of PhoneGetGroupCallStreamRtmpURLRequest. |
Peer | InputPeerClass | yes | Peer to livestream into |
Revoke | bool | — | Whether to revoke the previous stream key or simply return the existing one |
Returns
Possible errors
| Code | Type | Description |
|---|---|---|
| 400 | CHAT_ADMIN_REQUIRED | You must be an admin in this chat to do this. |
| 400 | PEER_ID_INVALID | The provided peer id is invalid. |
References
- Official documentation
- Generated Go reference
- TL definition:
phone.getGroupCallStreamRtmpUrl#5af4c73a