Class: TD::Types::UserType::Bot
- Inherits:
-
TD::Types::UserType
- Object
- Dry::Struct
- Base
- TD::Types::UserType
- TD::Types::UserType::Bot
- Defined in:
- lib/tdlib/types/user_type/bot.rb
Overview
A bot (see core.telegram.org/bots).
Instance Attribute Summary collapse
-
#active_user_count ⇒ Integer
The number of recently active users of the bot.
-
#can_be_added_to_attachment_menu ⇒ Boolean
True, if the bot can be added to attachment or side menu.
-
#can_be_edited ⇒ Boolean
True, if the bot is owned by the current user and can be edited using the methods toggleBotUsernameIsActive, reorderBotActiveUsernames, setBotProfilePhoto, setBotName, setBotInfoDescription, and setBotInfoShortDescription.
-
#can_connect_to_business ⇒ Boolean
True, if the bot supports connection to Telegram Business accounts.
-
#can_join_groups ⇒ Boolean
True, if the bot can be invited to basic group and supergroup chats.
-
#can_read_all_group_messages ⇒ Boolean
True, if the bot can read all messages in basic group or supergroup chats and not just those addressed to the bot.
-
#has_main_web_app ⇒ Boolean
True, if the bot has the main Web App.
-
#inline_query_placeholder ⇒ TD::Types::String
Placeholder for inline queries (displayed on the application input field).
-
#is_inline ⇒ Boolean
True, if the bot supports inline queries.
-
#need_location ⇒ Boolean
True, if the location of the user is expected to be sent with every inline query to this bot.
Method Summary
Methods inherited from Base
Instance Attribute Details
#active_user_count ⇒ Integer
The number of recently active users of the bot.
20 21 22 |
# File 'lib/tdlib/types/user_type/bot.rb', line 20 def active_user_count @active_user_count end |
#can_be_added_to_attachment_menu ⇒ Boolean
True, if the bot can be added to attachment or side menu.
20 21 22 |
# File 'lib/tdlib/types/user_type/bot.rb', line 20 def @can_be_added_to_attachment_menu end |
#can_be_edited ⇒ Boolean
True, if the bot is owned by the current user and can be edited using the methods toggleBotUsernameIsActive, reorderBotActiveUsernames, setBotProfilePhoto, setBotName, setBotInfoDescription, and setBotInfoShortDescription.
20 21 22 |
# File 'lib/tdlib/types/user_type/bot.rb', line 20 def can_be_edited @can_be_edited end |
#can_connect_to_business ⇒ Boolean
True, if the bot supports connection to Telegram Business accounts.
20 21 22 |
# File 'lib/tdlib/types/user_type/bot.rb', line 20 def can_connect_to_business @can_connect_to_business end |
#can_join_groups ⇒ Boolean
True, if the bot can be invited to basic group and supergroup chats.
20 21 22 |
# File 'lib/tdlib/types/user_type/bot.rb', line 20 def can_join_groups @can_join_groups end |
#can_read_all_group_messages ⇒ Boolean
True, if the bot can read all messages in basic group or supergroup chats and not just those addressed to the bot. In private and channel chats a bot can always read all messages.
20 21 22 |
# File 'lib/tdlib/types/user_type/bot.rb', line 20 def @can_read_all_group_messages end |
#has_main_web_app ⇒ Boolean
True, if the bot has the main Web App.
20 21 22 |
# File 'lib/tdlib/types/user_type/bot.rb', line 20 def has_main_web_app @has_main_web_app end |
#inline_query_placeholder ⇒ TD::Types::String
Placeholder for inline queries (displayed on the application input field).
20 21 22 |
# File 'lib/tdlib/types/user_type/bot.rb', line 20 def inline_query_placeholder @inline_query_placeholder end |
#is_inline ⇒ Boolean
True, if the bot supports inline queries.
20 21 22 |
# File 'lib/tdlib/types/user_type/bot.rb', line 20 def is_inline @is_inline end |
#need_location ⇒ Boolean
True, if the location of the user is expected to be sent with every inline query to this bot.
20 21 22 |
# File 'lib/tdlib/types/user_type/bot.rb', line 20 def need_location @need_location end |