Skip to content

send phone number verification code

Alexey Kravtsov edited this page May 19, 2020 · 1 revision

libtd-ktx / kotlinx.telegram.coroutines / sendPhoneNumberVerificationCode

sendPhoneNumberVerificationCode

suspend fun TelegramFlow.sendPhoneNumberVerificationCode(phoneNumber: String?, settings: PhoneNumberAuthenticationSettings?): AuthenticationCodeInfo

Suspend function, which sends a code to verify a phone number to be added to a user's Telegram Passport.

Parameters

phoneNumber - The phone number of the user, in international format.

settings - Settings for the authentication of the user's phone number.

Return AuthenticationCodeInfo Information about the authentication code that was sent.

Clone this wiki locally