get_group_call_stream_rtmp_url()¶
- async Client.get_group_call_stream_rtmp_url()¶
Get RTMP streaming URL and Stream Key for broadcasting to a chat (e.g. via OBS).
Usable by Users Bots- Parameters:
chat_id (
int|str) – Unique identifier (int) or username (str) of the target channel or chat.revoke (
bool, optional) – Pass True to revoke the previous stream key and generate a new one.live_story (
bool, optional) – Pass True if streaming for a live story.
- Returns:
GroupCallStreamRtmpUrl– Containsurlandkey.
Example
rtmp = await app.get_group_call_stream_rtmp_url(channel_id) print("Server URL:", rtmp.url) print("Stream Key:", rtmp.key)