Class: TD::Types::InlineKeyboardButtonType::LoginUrl

Inherits:
TD::Types::InlineKeyboardButtonType show all
Defined in:
lib/tdlib/types/inline_keyboard_button_type/login_url.rb

Overview

A button that opens a specified URL and automatically authorize the current user if allowed to do so.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#forward_textTD::Types::String

If non-empty, new text of the button in forwarded messages.

Returns:

  • (TD::Types::String)

    the current value of forward_text



7
8
9
# File 'lib/tdlib/types/inline_keyboard_button_type/login_url.rb', line 7

def forward_text
  @forward_text
end

#idInteger

Unique button identifier.

Returns:

  • (Integer)

    the current value of id



7
8
9
# File 'lib/tdlib/types/inline_keyboard_button_type/login_url.rb', line 7

def id
  @id
end

#urlTD::Types::String

An HTTP URL to open.

Returns:

  • (TD::Types::String)

    the current value of url



7
8
9
# File 'lib/tdlib/types/inline_keyboard_button_type/login_url.rb', line 7

def url
  @url
end