Class: TD::Types::AttachmentMenuBot

Inherits:
Base
  • Object
show all
Defined in:
lib/tdlib/types/attachment_menu_bot.rb

Overview

Represents a bot, which can be added to attachment or side menu.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#to_hash, #to_json

Instance Attribute Details

#android_iconTD::Types::File?

Icon for the bot in TGS format for the official Android app; may be null.

Returns:



42
43
44
# File 'lib/tdlib/types/attachment_menu_bot.rb', line 42

def android_icon
  @android_icon
end

#android_side_menu_iconTD::Types::File?

Icon for the bot in SVG format for the official Android app side menu; may be null.

Returns:



42
43
44
# File 'lib/tdlib/types/attachment_menu_bot.rb', line 42

def android_side_menu_icon
  @android_side_menu_icon
end

#bot_user_idInteger

User identifier of the bot.

Returns:

  • (Integer)

    the current value of bot_user_id



42
43
44
# File 'lib/tdlib/types/attachment_menu_bot.rb', line 42

def bot_user_id
  @bot_user_id
end

#default_iconTD::Types::File?

Default icon for the bot in SVG format; may be null.

Returns:



42
43
44
# File 'lib/tdlib/types/attachment_menu_bot.rb', line 42

def default_icon
  @default_icon
end

#icon_colorTD::Types::AttachmentMenuBotColor?

Color to highlight selected icon of the bot if appropriate; may be null.

Returns:



42
43
44
# File 'lib/tdlib/types/attachment_menu_bot.rb', line 42

def icon_color
  @icon_color
end

#ios_animated_iconTD::Types::File?

Icon for the bot in TGS format for the official iOS app; may be null.

Returns:



42
43
44
# File 'lib/tdlib/types/attachment_menu_bot.rb', line 42

def ios_animated_icon
  @ios_animated_icon
end

#ios_side_menu_iconTD::Types::File?

Icon for the bot in PNG format for the official iOS app side menu; may be null.

Returns:



42
43
44
# File 'lib/tdlib/types/attachment_menu_bot.rb', line 42

def ios_side_menu_icon
  @ios_side_menu_icon
end

#ios_static_iconTD::Types::File?

Icon for the bot in SVG format for the official iOS app; may be null.

Returns:



42
43
44
# File 'lib/tdlib/types/attachment_menu_bot.rb', line 42

def ios_static_icon
  @ios_static_icon
end

#is_addedBoolean

True, if the bot was explicitly added by the user. If the bot isn’t added, then on the first bot launch toggleBotIsAddedToAttachmentMenu must be called and the bot must be added or removed.

Returns:

  • (Boolean)

    the current value of is_added



42
43
44
# File 'lib/tdlib/types/attachment_menu_bot.rb', line 42

def is_added
  @is_added
end

#macos_iconTD::Types::File?

Icon for the bot in TGS format for the official native macOS app; may be null.

Returns:



42
43
44
# File 'lib/tdlib/types/attachment_menu_bot.rb', line 42

def macos_icon
  @macos_icon
end

#macos_side_menu_iconTD::Types::File?

Icon for the bot in PNG format for the official macOS app side menu; may be null.

Returns:



42
43
44
# File 'lib/tdlib/types/attachment_menu_bot.rb', line 42

def macos_side_menu_icon
  @macos_side_menu_icon
end

#nameTD::Types::String

Name for the bot in attachment menu.

Returns:

  • (TD::Types::String)

    the current value of name



42
43
44
# File 'lib/tdlib/types/attachment_menu_bot.rb', line 42

def name
  @name
end

#name_colorTD::Types::AttachmentMenuBotColor?

Color to highlight selected name of the bot if appropriate; may be null.

Returns:



42
43
44
# File 'lib/tdlib/types/attachment_menu_bot.rb', line 42

def name_color
  @name_color
end

#request_write_accessBoolean

True, if the user must be asked for the permission to send messages to the bot.

Returns:

  • (Boolean)

    the current value of request_write_access



42
43
44
# File 'lib/tdlib/types/attachment_menu_bot.rb', line 42

def request_write_access
  @request_write_access
end

#show_disclaimer_in_side_menuBoolean

True, if a disclaimer, why the bot is shown in the side menu, is needed.

Returns:

  • (Boolean)

    the current value of show_disclaimer_in_side_menu



42
43
44
# File 'lib/tdlib/types/attachment_menu_bot.rb', line 42

def show_disclaimer_in_side_menu
  @show_disclaimer_in_side_menu
end

#show_in_attachment_menuBoolean

True, if the bot must be shown in the attachment menu.

Returns:

  • (Boolean)

    the current value of show_in_attachment_menu



42
43
44
# File 'lib/tdlib/types/attachment_menu_bot.rb', line 42

def show_in_attachment_menu
  @show_in_attachment_menu
end

#show_in_side_menuBoolean

True, if the bot must be shown in the side menu.

Returns:

  • (Boolean)

    the current value of show_in_side_menu



42
43
44
# File 'lib/tdlib/types/attachment_menu_bot.rb', line 42

def show_in_side_menu
  @show_in_side_menu
end

#supports_bot_chatsBoolean

True, if the bot supports opening from attachment menu in private chats with other bots.

Returns:

  • (Boolean)

    the current value of supports_bot_chats



42
43
44
# File 'lib/tdlib/types/attachment_menu_bot.rb', line 42

def supports_bot_chats
  @supports_bot_chats
end

#supports_channel_chatsBoolean

True, if the bot supports opening from attachment menu in channel chats.

Returns:

  • (Boolean)

    the current value of supports_channel_chats



42
43
44
# File 'lib/tdlib/types/attachment_menu_bot.rb', line 42

def supports_channel_chats
  @supports_channel_chats
end

#supports_group_chatsBoolean

True, if the bot supports opening from attachment menu in basic group and supergroup chats.

Returns:

  • (Boolean)

    the current value of supports_group_chats



42
43
44
# File 'lib/tdlib/types/attachment_menu_bot.rb', line 42

def supports_group_chats
  @supports_group_chats
end

#supports_self_chatBoolean

True, if the bot supports opening from attachment menu in the chat with the bot.

Returns:

  • (Boolean)

    the current value of supports_self_chat



42
43
44
# File 'lib/tdlib/types/attachment_menu_bot.rb', line 42

def supports_self_chat
  @supports_self_chat
end

#supports_user_chatsBoolean

True, if the bot supports opening from attachment menu in private chats with ordinary users.

Returns:

  • (Boolean)

    the current value of supports_user_chats



42
43
44
# File 'lib/tdlib/types/attachment_menu_bot.rb', line 42

def supports_user_chats
  @supports_user_chats
end

#web_app_placeholderTD::Types::File?

Default placeholder for opened Web Apps in SVG format; may be null.

Returns:



42
43
44
# File 'lib/tdlib/types/attachment_menu_bot.rb', line 42

def web_app_placeholder
  @web_app_placeholder
end