get_video_chat_rtmp_url()¶
- Client.get_video_chat_rtmp_url()¶
Returns RTMP URL for streaming to the chat; requires owner privileges.
Usable by Users Bots
- Parameters:¶
chat_id (``int`` | ``str``) – Unique identifier (int) or username (str) of the target chat. A chat can be either a basic group, supergroup or a channel.
replace (``bool``, *optional*) – Whether to replace the previous stream key or simply return the existing one. Defaults to False, i.e., return the existing one.
- Returns:¶
:obj:`~pyrogram.types.RtmpUrl` (On success, the RTMP URL and stream key is returned.)
Example
await app.get_stream_rtmp_url(chat_id)