libtd-ktx / kotlinx.telegram.coroutines / checkAuthenticationBotToken
checkAuthenticationBotToken
suspend fun
TelegramFlow
.checkAuthenticationBotToken(token:
String
?):
Unit
Suspend function, which checks the authentication token of a bot; to log in as a bot. Works only when the current authorization state is authorizationStateWaitPhoneNumber. Can be used instead of setAuthenticationPhoneNumber and checkAuthenticationCode to log in.
Parameters
token
- The bot token.