Layer 227
PhoneGetGroupCallStreamRtmpUrl
Get the RTMP URL and stream key used by the single external streamer that publishes all audio and video for an RTMP-mode video chat, livestream or live story.
method
Users
phone.getGroupCallStreamRtmpUrl#5af4c73a flags:# live_story:flags.0?true peer:InputPeer revoke:Bool = phone.GroupCallStreamRtmpUrl;
Parameters
| Name | Type | Description |
|---|---|---|
| LiveStory | flags .0? true | Obtain credentials for an RTMP live story instead of a video chat/livestream |
| Peer | InputPeer | Peer that will host the RTMP video chat, livestream or live story |
| Revoke | Bool | Whether to invalidate the previous stream key and generate a new one, instead of returning the existing key |
Returns
phone.GroupCallStreamRtmpUrlGogram Example
// PhoneGetGroupCallStreamRtmpUrl - positional arguments result, err := client.PhoneGetGroupCallStreamRtmpUrl(nil, &tg.InputPeerUser{UserID: int64(777000)}, true) if err != nil { // handle error } // result is *tg.PhoneGroupCallStreamRtmpUrl
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. |