start_group_call_record()

async Client.start_group_call_record()

Start server-side recording of an active group voice chat or live stream.

Usable by Users Bots
Parameters:
  • chat_id (int | str | GroupCall) – Unique identifier (int) or username (str) of the target chat, or the GroupCall object.

  • title (str, optional) – Recording title.

  • video (bool, optional) – Pass True to record video in addition to audio.

  • video_portrait (bool, optional) – Pass True if the recorded video orientation is portrait.

Returns:

Updates – On success, updates are returned.

Example

# Start audio recording
await app.start_group_call_record(chat_id, title="Episode 1")

# Start video recording in portrait mode
await app.start_group_call_record(chat_id, title="Live Show", video=True, video_portrait=True)