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.
See here » for the full flow.
phone.groupCallStreamRtmpUrl#2dbf3432 url:string key:string = phone.GroupCallStreamRtmpUrl;
---functions---
phone.getGroupCallStreamRtmpUrl#5af4c73a flags:# live_story:flags.0?true peer:InputPeer revoke:Bool = phone.GroupCallStreamRtmpUrl;
| Name | Type | Description |
|---|---|---|
| flags | # | Flags, see TL conditional fields |
| live_story | 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 |
| 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. |