Class: TD::Types::AttachmentMenuBot
- 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
-
#android_icon ⇒ TD::Types::File?
Icon for the bot in TGS format for the official Android app; may be null.
-
#android_side_menu_icon ⇒ TD::Types::File?
Icon for the bot in SVG format for the official Android app side menu; may be null.
-
#bot_user_id ⇒ Integer
User identifier of the bot.
-
#default_icon ⇒ TD::Types::File?
Default icon for the bot in SVG format; may be null.
-
#icon_color ⇒ TD::Types::AttachmentMenuBotColor?
Color to highlight selected icon of the bot if appropriate; may be null.
-
#ios_animated_icon ⇒ TD::Types::File?
Icon for the bot in TGS format for the official iOS app; may be null.
-
#ios_side_menu_icon ⇒ TD::Types::File?
Icon for the bot in PNG format for the official iOS app side menu; may be null.
-
#ios_static_icon ⇒ TD::Types::File?
Icon for the bot in SVG format for the official iOS app; may be null.
-
#is_added ⇒ Boolean
True, if the bot was explicitly added by the user.
-
#macos_icon ⇒ TD::Types::File?
Icon for the bot in TGS format for the official native macOS app; may be null.
-
#macos_side_menu_icon ⇒ TD::Types::File?
Icon for the bot in PNG format for the official macOS app side menu; may be null.
-
#name ⇒ TD::Types::String
Name for the bot in attachment menu.
-
#name_color ⇒ TD::Types::AttachmentMenuBotColor?
Color to highlight selected name of the bot if appropriate; may be null.
-
#request_write_access ⇒ Boolean
True, if the user must be asked for the permission to send messages to the bot.
-
#show_disclaimer_in_side_menu ⇒ Boolean
True, if a disclaimer, why the bot is shown in the side menu, is needed.
-
#show_in_attachment_menu ⇒ Boolean
True, if the bot must be shown in the attachment menu.
-
#show_in_side_menu ⇒ Boolean
True, if the bot must be shown in the side menu.
-
#supports_bot_chats ⇒ Boolean
True, if the bot supports opening from attachment menu in private chats with other bots.
-
#supports_channel_chats ⇒ Boolean
True, if the bot supports opening from attachment menu in channel chats.
-
#supports_group_chats ⇒ Boolean
True, if the bot supports opening from attachment menu in basic group and supergroup chats.
-
#supports_self_chat ⇒ Boolean
True, if the bot supports opening from attachment menu in the chat with the bot.
-
#supports_user_chats ⇒ Boolean
True, if the bot supports opening from attachment menu in private chats with ordinary users.
-
#web_app_placeholder ⇒ TD::Types::File?
Default placeholder for opened Web Apps in SVG format; may be null.
Method Summary
Methods inherited from Base
Instance Attribute Details
#android_icon ⇒ TD::Types::File?
Icon for the bot in TGS format for the official Android app; may be null.
42 43 44 |
# File 'lib/tdlib/types/attachment_menu_bot.rb', line 42 def android_icon @android_icon end |
#android_side_menu_icon ⇒ TD::Types::File?
Icon for the bot in SVG format for the official Android app side menu; may be null.
42 43 44 |
# File 'lib/tdlib/types/attachment_menu_bot.rb', line 42 def @android_side_menu_icon end |
#bot_user_id ⇒ Integer
User identifier of the bot.
42 43 44 |
# File 'lib/tdlib/types/attachment_menu_bot.rb', line 42 def bot_user_id @bot_user_id end |
#default_icon ⇒ TD::Types::File?
Default icon for the bot in SVG format; may be null.
42 43 44 |
# File 'lib/tdlib/types/attachment_menu_bot.rb', line 42 def default_icon @default_icon end |
#icon_color ⇒ TD::Types::AttachmentMenuBotColor?
Color to highlight selected icon of the bot if appropriate; may be null.
42 43 44 |
# File 'lib/tdlib/types/attachment_menu_bot.rb', line 42 def icon_color @icon_color end |
#ios_animated_icon ⇒ TD::Types::File?
Icon for the bot in TGS format for the official iOS app; may be null.
42 43 44 |
# File 'lib/tdlib/types/attachment_menu_bot.rb', line 42 def ios_animated_icon @ios_animated_icon end |
#ios_side_menu_icon ⇒ TD::Types::File?
Icon for the bot in PNG format for the official iOS app side menu; may be null.
42 43 44 |
# File 'lib/tdlib/types/attachment_menu_bot.rb', line 42 def @ios_side_menu_icon end |
#ios_static_icon ⇒ TD::Types::File?
Icon for the bot in SVG format for the official iOS app; may be null.
42 43 44 |
# File 'lib/tdlib/types/attachment_menu_bot.rb', line 42 def ios_static_icon @ios_static_icon end |
#is_added ⇒ Boolean
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.
42 43 44 |
# File 'lib/tdlib/types/attachment_menu_bot.rb', line 42 def is_added @is_added end |
#macos_icon ⇒ TD::Types::File?
Icon for the bot in TGS format for the official native macOS app; may be null.
42 43 44 |
# File 'lib/tdlib/types/attachment_menu_bot.rb', line 42 def macos_icon @macos_icon end |
#macos_side_menu_icon ⇒ TD::Types::File?
Icon for the bot in PNG format for the official macOS app side menu; may be null.
42 43 44 |
# File 'lib/tdlib/types/attachment_menu_bot.rb', line 42 def @macos_side_menu_icon end |
#name ⇒ TD::Types::String
Name for the bot in attachment menu.
42 43 44 |
# File 'lib/tdlib/types/attachment_menu_bot.rb', line 42 def name @name end |
#name_color ⇒ TD::Types::AttachmentMenuBotColor?
Color to highlight selected name of the bot if appropriate; may be null.
42 43 44 |
# File 'lib/tdlib/types/attachment_menu_bot.rb', line 42 def name_color @name_color end |
#request_write_access ⇒ Boolean
True, if the user must be asked for the permission to send messages to the bot.
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_menu ⇒ Boolean
True, if a disclaimer, why the bot is shown in the side menu, is needed.
42 43 44 |
# File 'lib/tdlib/types/attachment_menu_bot.rb', line 42 def @show_disclaimer_in_side_menu end |
#show_in_attachment_menu ⇒ Boolean
True, if the bot must be shown in the attachment menu.
42 43 44 |
# File 'lib/tdlib/types/attachment_menu_bot.rb', line 42 def @show_in_attachment_menu end |
#show_in_side_menu ⇒ Boolean
True, if the bot must be shown in the side menu.
42 43 44 |
# File 'lib/tdlib/types/attachment_menu_bot.rb', line 42 def @show_in_side_menu end |
#supports_bot_chats ⇒ Boolean
True, if the bot supports opening from attachment menu in private chats with other bots.
42 43 44 |
# File 'lib/tdlib/types/attachment_menu_bot.rb', line 42 def supports_bot_chats @supports_bot_chats end |
#supports_channel_chats ⇒ Boolean
True, if the bot supports opening from attachment menu in 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_chats ⇒ Boolean
True, if the bot supports opening from attachment menu in basic group and supergroup chats.
42 43 44 |
# File 'lib/tdlib/types/attachment_menu_bot.rb', line 42 def supports_group_chats @supports_group_chats end |
#supports_self_chat ⇒ Boolean
True, if the bot supports opening from attachment menu in the chat with the bot.
42 43 44 |
# File 'lib/tdlib/types/attachment_menu_bot.rb', line 42 def supports_self_chat @supports_self_chat end |
#supports_user_chats ⇒ Boolean
True, if the bot supports opening from attachment menu in private chats with ordinary users.
42 43 44 |
# File 'lib/tdlib/types/attachment_menu_bot.rb', line 42 def supports_user_chats @supports_user_chats end |
#web_app_placeholder ⇒ TD::Types::File?
Default placeholder for opened Web Apps in SVG format; may be null.
42 43 44 |
# File 'lib/tdlib/types/attachment_menu_bot.rb', line 42 def web_app_placeholder @web_app_placeholder end |