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: 223

  • 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_storytrue (optional)
├── peerInputPeer
│ ├── InputPeerEmpty
│ ├── InputPeerSelf
│ ├── InputPeerChat
│ │ └── chat_idlong
│ ├── InputPeerUser
│ │ ├── user_idlong
│ │ └── access_hashlong
│ ├── InputPeerChannel
│ │ ├── channel_idlong
│ │ └── access_hashlong
│ │ ├── peerInputPeer
│ │ │ ├── InputPeerEmpty
│ │ │ ├── InputPeerSelf
│ │ │ ├── InputPeerChat
│ │ │ ├── InputPeerUser
│ │ │ ├── InputPeerChannel
│ │ │ ├── InputPeerUserFromMessage
│ │ │ └── InputPeerChannelFromMessage
│ │ ├── msg_idint
│ │ └── user_idlong
│ ├── peerInputPeer
│ │ ├── InputPeerEmpty
│ │ ├── InputPeerSelf
│ │ ├── InputPeerChat
│ │ ├── InputPeerUser
│ │ ├── InputPeerChannel
│ │ ├── InputPeerUserFromMessage
│ │ └── InputPeerChannelFromMessage
│ ├── msg_idint
│ └── channel_idlong
└── revokeBool

Example

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