Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/mtkruto/mod.ts>Client#addChatMember

Cross-runtime JavaScript library for building Telegram clients
Latest
method Client.prototype.addChatMember
import { Client } from "https://deno.land/x/mtkruto@0.6.3/mod.ts";

Add a single user to a chat.

Parameters

chatId: ID

The identifier of the chat to add the user to.

userId: ID

The identifier of the user to add to the chat.

optional
params: AddChatMemberParams

Returns

Promise<FailedInvitation[]>

An array of FailedInvitation that has at most a length of 1. If empty, it means that the user was added.