Methods

getInputPeer

Get a chat’s inputPeer. Useful when calling API functions directly.

Parameters

id: ID

The identifier of a chat.

Result

Api.InputPeer

Syntax

await client.getInputPeer(id);