Class: TD::Types::KeyboardButtonType::RequestChat

Inherits:
TD::Types::KeyboardButtonType show all
Defined in:
lib/tdlib/types/keyboard_button_type/request_chat.rb

Overview

A button that requests a chat to be shared by the current user; available only in private chats. Use the method shareChatWithBot to complete the request.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#bot_administrator_rightsTD::Types::ChatAdministratorRights?

Expected bot administrator rights in the chat; may be null if they aren’t restricted.

Returns:



26
27
28
# File 'lib/tdlib/types/keyboard_button_type/request_chat.rb', line 26

def bot_administrator_rights
  @bot_administrator_rights
end

#bot_is_memberBoolean

True, if the bot must be a member of the chat; for basic group and supergroup chats only.

Returns:

  • (Boolean)

    the current value of bot_is_member



26
27
28
# File 'lib/tdlib/types/keyboard_button_type/request_chat.rb', line 26

def bot_is_member
  @bot_is_member
end

#chat_has_usernameBoolean

True, if the chat must have a username; otherwise, the chat must not have a username. Ignored if restrict_chat_has_username is false.

Returns:

  • (Boolean)

    the current value of chat_has_username



26
27
28
# File 'lib/tdlib/types/keyboard_button_type/request_chat.rb', line 26

def chat_has_username
  @chat_has_username
end

#chat_is_channelBoolean

True, if the chat must be a channel; otherwise, a basic group or a supergroup chat is shared.

Returns:

  • (Boolean)

    the current value of chat_is_channel



26
27
28
# File 'lib/tdlib/types/keyboard_button_type/request_chat.rb', line 26

def chat_is_channel
  @chat_is_channel
end

#chat_is_createdBoolean

True, if the chat must be created by the current user.

Returns:

  • (Boolean)

    the current value of chat_is_created



26
27
28
# File 'lib/tdlib/types/keyboard_button_type/request_chat.rb', line 26

def chat_is_created
  @chat_is_created
end

#chat_is_forumBoolean

True, if the chat must be a forum supergroup; otherwise, the chat must not be a forum supergroup. Ignored if restrict_chat_is_forum is false.

Returns:

  • (Boolean)

    the current value of chat_is_forum



26
27
28
# File 'lib/tdlib/types/keyboard_button_type/request_chat.rb', line 26

def chat_is_forum
  @chat_is_forum
end

#idInteger

Unique button identifier.

Returns:

  • (Integer)

    the current value of id



26
27
28
# File 'lib/tdlib/types/keyboard_button_type/request_chat.rb', line 26

def id
  @id
end

#request_photoBoolean

Pass true to request photo of the chat; bots only.

Returns:

  • (Boolean)

    the current value of request_photo



26
27
28
# File 'lib/tdlib/types/keyboard_button_type/request_chat.rb', line 26

def request_photo
  @request_photo
end

#request_titleBoolean

Pass true to request title of the chat; bots only.

Returns:

  • (Boolean)

    the current value of request_title



26
27
28
# File 'lib/tdlib/types/keyboard_button_type/request_chat.rb', line 26

def request_title
  @request_title
end

#request_usernameBoolean

Pass true to request username of the chat; bots only.

Returns:

  • (Boolean)

    the current value of request_username



26
27
28
# File 'lib/tdlib/types/keyboard_button_type/request_chat.rb', line 26

def request_username
  @request_username
end

#restrict_chat_has_usernameBoolean

True, if the chat must or must not have a username.

Returns:

  • (Boolean)

    the current value of restrict_chat_has_username



26
27
28
# File 'lib/tdlib/types/keyboard_button_type/request_chat.rb', line 26

def restrict_chat_has_username
  @restrict_chat_has_username
end

#restrict_chat_is_forumBoolean

True, if the chat must or must not be a forum supergroup.

Returns:

  • (Boolean)

    the current value of restrict_chat_is_forum



26
27
28
# File 'lib/tdlib/types/keyboard_button_type/request_chat.rb', line 26

def restrict_chat_is_forum
  @restrict_chat_is_forum
end

#user_administrator_rightsTD::Types::ChatAdministratorRights?

Expected user administrator rights in the chat; may be null if they aren’t restricted.

Returns:



26
27
28
# File 'lib/tdlib/types/keyboard_button_type/request_chat.rb', line 26

def user_administrator_rights
  @user_administrator_rights
end