Class: TD::Types::KeyboardButtonType::RequestChat
- Inherits:
-
TD::Types::KeyboardButtonType
- Object
- Dry::Struct
- Base
- TD::Types::KeyboardButtonType
- TD::Types::KeyboardButtonType::RequestChat
- 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
-
#bot_administrator_rights ⇒ TD::Types::ChatAdministratorRights?
Expected bot administrator rights in the chat; may be null if they aren’t restricted.
-
#bot_is_member ⇒ Boolean
True, if the bot must be a member of the chat; for basic group and supergroup chats only.
-
#chat_has_username ⇒ Boolean
True, if the chat must have a username; otherwise, the chat must not have a username.
-
#chat_is_channel ⇒ Boolean
True, if the chat must be a channel; otherwise, a basic group or a supergroup chat is shared.
-
#chat_is_created ⇒ Boolean
True, if the chat must be created by the current user.
-
#chat_is_forum ⇒ Boolean
True, if the chat must be a forum supergroup; otherwise, the chat must not be a forum supergroup.
-
#id ⇒ Integer
Unique button identifier.
-
#request_photo ⇒ Boolean
Pass true to request photo of the chat; bots only.
-
#request_title ⇒ Boolean
Pass true to request title of the chat; bots only.
-
#request_username ⇒ Boolean
Pass true to request username of the chat; bots only.
-
#restrict_chat_has_username ⇒ Boolean
True, if the chat must or must not have a username.
-
#restrict_chat_is_forum ⇒ Boolean
True, if the chat must or must not be a forum supergroup.
-
#user_administrator_rights ⇒ TD::Types::ChatAdministratorRights?
Expected user administrator rights in the chat; may be null if they aren’t restricted.
Method Summary
Methods inherited from Base
Instance Attribute Details
#bot_administrator_rights ⇒ TD::Types::ChatAdministratorRights?
Expected bot administrator rights in the chat; may be null if they aren’t restricted.
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_member ⇒ Boolean
True, if the bot must be a member of the chat; for basic group and supergroup chats only.
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_username ⇒ Boolean
True, if the chat must have a username; otherwise, the chat must not have a username. Ignored if restrict_chat_has_username is false.
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_channel ⇒ Boolean
True, if the chat must be a channel; otherwise, a basic group or a supergroup chat is shared.
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_created ⇒ Boolean
True, if the chat must be created by the current user.
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_forum ⇒ Boolean
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.
26 27 28 |
# File 'lib/tdlib/types/keyboard_button_type/request_chat.rb', line 26 def chat_is_forum @chat_is_forum end |
#id ⇒ Integer
Unique button identifier.
26 27 28 |
# File 'lib/tdlib/types/keyboard_button_type/request_chat.rb', line 26 def id @id end |
#request_photo ⇒ Boolean
Pass true to request photo of the chat; bots only.
26 27 28 |
# File 'lib/tdlib/types/keyboard_button_type/request_chat.rb', line 26 def request_photo @request_photo end |
#request_title ⇒ Boolean
Pass true to request title of the chat; bots only.
26 27 28 |
# File 'lib/tdlib/types/keyboard_button_type/request_chat.rb', line 26 def request_title @request_title end |
#request_username ⇒ Boolean
Pass true to request username of the chat; bots only.
26 27 28 |
# File 'lib/tdlib/types/keyboard_button_type/request_chat.rb', line 26 def request_username @request_username end |
#restrict_chat_has_username ⇒ Boolean
True, if the chat must or must not have a 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_forum ⇒ Boolean
True, if the chat must or must not be a forum supergroup.
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_rights ⇒ TD::Types::ChatAdministratorRights?
Expected user administrator rights in the chat; may be null if they aren’t restricted.
26 27 28 |
# File 'lib/tdlib/types/keyboard_button_type/request_chat.rb', line 26 def user_administrator_rights @user_administrator_rights end |