Methods

getInputChannel

Get a channel or a supergroup’s inputChannel. Useful when calling API functions directly.

Parameters

id: ID

The identifier of the channel or the supergroup.

Result

Api.inputChannel | Api.inputChannelFromMessage

Syntax

await client.getInputChannel(id);