Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/mtkruto/client/5_client.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.2.24/client/5_client.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.