Skip to main content

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

NameTypeRequiredDescription
LiveStoryboolLiveStory field of PhoneGetGroupCallStreamRtmpURLRequest.
PeerInputPeerClassyesPeer to livestream into
RevokeboolWhether to revoke the previous stream key or simply return the existing one

Returns

*PhoneGroupCallStreamRtmpURL

Possible errors

CodeTypeDescription
400CHAT_ADMIN_REQUIREDYou must be an admin in this chat to do this.
400PEER_ID_INVALIDThe provided peer id is invalid.

References