LoginUrl

data class LoginUrl(url: String, forward_text: String?, bot_username: String?, request_write_access: Boolean?) : TelegramModel

This object represents a parameter of the inline keyboard button used to automatically authorize a user. Serves as a great replacement for the Telegram Login Widget when the user is coming from Telegram. All the user needs to do is tap/click a button and confirm that they want to log in:

Telegram apps support these buttons as of version 5.7.

Sample bot: @discussbot

Constructors

LoginUrl
Link copied to clipboard
fun LoginUrl(url: String, forward_text: String? = null, bot_username: String? = null, request_write_access: Boolean? = null)
Creates a LoginUrl.

Properties

bot_username
Link copied to clipboard
val bot_username: String? = null
Optional.
forward_text
Link copied to clipboard
val forward_text: String? = null
Optional.
request_write_access
Link copied to clipboard
val request_write_access: Boolean? = null
Optional.
url
Link copied to clipboard
val url: String
An HTTP URL to be opened with user authorization data added to the query string when the button is pressed.