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

x/mtkruto/tl/3_functions.ts>contacts_addContact_

Cross-runtime JavaScript library for building Telegram clients
Go to Latest
class contacts_addContact_
extends Function_<enums.Updates>
import { contacts_addContact_ } from "https://deno.land/x/mtkruto@0.1.190/tl/3_functions.ts";

Add an existing telegram user as contact.

Constructors

new
contacts_addContact_(params: { add_phone_privacy_exception?: true; id: enums.InputUser; first_name: string; last_name: string; phone: string; })

Properties

protected
readonly
[id]: number
protected
readonly
[params]: Params
optional
add_phone_privacy_exception: true

Allow the other user to see our phone number?

first_name: string

First name

id: enums.InputUser

Telegram ID of the other user

last_name: string

Last name

phone: string

User's phone number, may be omitted to simply add the user to the contact list, without a phone number.

Static Properties

__F: (params: { add_phone_privacy_exception?: true; id: enums.InputUser; first_name: string; last_name: string; phone: string; }) => enums.Updates
readonly
[name]: string
readonly
[paramDesc]: ParamDesc