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.