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

x/grm/src/mod.ts>tgClient.AbstractTelegramClient#sendCode

MTProto API Client for Deno 🦕
Go to Latest
method tgClient.AbstractTelegramClient.prototype.sendCode
import { tgClient } from "https://deno.land/x/grm@0.5.2/src/mod.ts";
const { AbstractTelegramClient } = tgClient;

Parameters

apiCredentials: types.ApiCredentials
phoneNumber: string
optional
forceSMS: boolean

Returns

Promise<{ phoneCodeHash: string; isCodeViaApp: boolean; }>