Layer 220
PhoneGetGroupCallStreamRtmpUrl
Get RTMP URL and stream key for RTMP livestreams. Can be used even before creating the actual RTMP livestream with phone. create Group Call (the rtmp_stream flag must be set).
method
Users
Parameters
| Name | Type | Description |
|---|---|---|
| Peer | InputPeer | Peer to livestream into |
| Revoke | Bool | Whether to revoke the previous stream key or simply return the existing one |
Returns
phone.GroupCallStreamRtmpUrlPossible 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. |
Gogram Example
// PhoneGetGroupCallStreamRtmpUrl - positional arguments result, err := client.PhoneGetGroupCallStreamRtmpUrl(&tg.InputPeerUser{UserID: int64(123456789)}, true) if err != nil { // handle error } // result is *tg.PhoneGroupCallStreamRtmpUrl