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
-
#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.
-
#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 should be sent with every inline query to this bot.
Method Summary
Methods inherited from Base
Instance Attribute Details
#can_join_groups ⇒ Boolean
True, if the bot can be invited to basic group and supergroup chats.
12 13 14 |
# File 'lib/tdlib/types/user_type/bot.rb', line 12 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.
12 13 14 |
# File 'lib/tdlib/types/user_type/bot.rb', line 12 def @can_read_all_group_messages end |
#inline_query_placeholder ⇒ TD::Types::String
Placeholder for inline queries (displayed on the application input field).
12 13 14 |
# File 'lib/tdlib/types/user_type/bot.rb', line 12 def inline_query_placeholder @inline_query_placeholder end |
#is_inline ⇒ Boolean
True, if the bot supports inline queries.
12 13 14 |
# File 'lib/tdlib/types/user_type/bot.rb', line 12 def is_inline @is_inline end |
#need_location ⇒ Boolean
True, if the location of the user should be sent with every inline query to this bot.
12 13 14 |
# File 'lib/tdlib/types/user_type/bot.rb', line 12 def need_location @need_location end |