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 logs in in current user if they allowed to do that.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#forward_textString

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

Returns:

  • (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

#urlString

HTTP URL to open.

Returns:

  • (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