Skip to main content
Module

x/grm/mod.ts>TelegramClient#sendCode

MTProto API Client for Deno 🦕
Go to Latest
method TelegramClient.prototype.sendCode
import { TelegramClient } from "https://deno.land/x/grm@0.6.0/mod.ts";

Parameters

apiCredentials: types.ApiCredentials
phoneNumber: string
optional
forceSMS = [UNSUPPORTED]

Returns

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