GramJS

phone.GetGroupCallStreamChannels

Get info about RTMP streams in a group call or livestream.

This method should be invoked to the same group/channel-related DC used for downloading livestream chunks.

As usual, the media DC is preferred, if available.

Example

const { Api, TelegramClient } = require("telegram");
const { StringSession } = require("telegram/sessions");

const session = new StringSession(""); // You should put your string session here
const client = new TelegramClient(session, apiId, apiHash, {});

(async function run() {
  await client.connect(); // This assumes you have already authenticated with .start()

  const result = await client.invoke(
    new Api.phone.GetGroupCallStreamChannels({
      call: new Api.InputGroupCall({
        id: BigInt("-4156887774564"),
        accessHash: BigInt("-4156887774564"),
      }),
    })
  );
  console.log(result); // prints the result
})();
import { Api, TelegramClient } from "telegram";
import { StringSession } from "telegram/sessions";

const session = new StringSession(""); // You should put your string session here
const client = new TelegramClient(session, apiId, apiHash, {});

(async function run() {
  await client.connect(); // This assumes you have already authenticated with .start()

  const result: Api.phone.GroupCallStreamChannels = await client.invoke(
    new Api.phone.GetGroupCallStreamChannels({
      call: new Api.InputGroupCall({
        id: BigInt("-4156887774564"),
        accessHash: BigInt("-4156887774564"),
      }),
    })
  );
  console.log(result); // prints the result
})();

Parameters

NameTypeDescription
callInputGroupCallGroup call or livestream

Result

phone.GroupCallStreamChannels

Possible errors

CodeTypeDescription
400GROUPCALL_INVALIDThe specified group call is invalid.
400GROUPCALL_JOIN_MISSINGYou haven't joined this group call.

Can bots use this method?

No

Uploading and Downloading Files

How to transfer large data batches correctly.