phone.GetGroupCallStreamRtmpUrl

class pyrogram.raw.functions.phone.GetGroupCallStreamRtmpUrl

Get RTMP URL and stream key for RTMP livestreams. Can be used even before creating the actual RTMP livestream with phone.createGroupCall (the rtmp_stream flag must be set).

Details:
  • Layer: 227

  • ID: 5AF4C73A

Parameters:
  • peer (InputPeer) – Peer to livestream into

  • revoke (bool) – Whether to revoke the previous stream key or simply return the existing one

  • live_story (bool, optional)

Returns:

phone.GroupCallStreamRtmpUrl

TL Schema

phone.getGroupCallStreamRtmpUrl#5af4c73a
flags:#
live_story:flags.0?true
peer:InputPeer
revoke:Bool

= phone.GroupCallStreamRtmpUrl

Parameter Tree

GetGroupCallStreamRtmpUrl
├── live_story → true (optional)
├── peer → InputPeer
│ ├── InputPeerEmpty
│ ├── InputPeerSelf
│ ├── InputPeerChat
│ │ └── chat_id → long
│ ├── InputPeerUser
│ │ ├── user_id → long
│ │ └── access_hash → long
│ ├── InputPeerChannel
│ │ ├── channel_id → long
│ │ └── access_hash → long
│ │ ├── peer → InputPeer
│ │ │ ├── InputPeerEmpty
│ │ │ ├── InputPeerSelf
│ │ │ ├── InputPeerChat
│ │ │ ├── InputPeerUser
│ │ │ ├── InputPeerChannel
│ │ │ ├── InputPeerUserFromMessage
│ │ │ └── InputPeerChannelFromMessage
│ │ ├── msg_id → int
│ │ └── user_id → long
│ ├── peer → InputPeer
│ │ ├── InputPeerEmpty
│ │ ├── InputPeerSelf
│ │ ├── InputPeerChat
│ │ ├── InputPeerUser
│ │ ├── InputPeerChannel
│ │ ├── InputPeerUserFromMessage
│ │ └── InputPeerChannelFromMessage
│ ├── msg_id → int
│ └── channel_id → long
└── revoke → Bool

Example

await app.invoke(
    GetGroupCallStreamRtmpUrl(
        live_story=None,
        peer=await app.resolve_peer(chat_id),
        revoke=True,
    )
)