Class: BotUser
Overview
Class returned only in get_me method.
This class extends from User class.
Instance Method Summary collapse
-
#can_join_groups ⇒ Object
Optional.
True, if the bot can be invited to groups. -
#can_read_all_group_messages? ⇒ Boolean
Optional.
True, if privacy mode is disabled for the bot. -
#initialize(bot) ⇒ BotUser
constructor
:nodoc:.
-
#supports_inline_queries? ⇒ Boolean
Optional.
True, if the bot supports inline queries.
Methods inherited from User
#bot?, #first_name, #id, #language_code, #last_name, #username
Constructor Details
#initialize(bot) ⇒ BotUser
:nodoc:
48 49 50 |
# File 'lib/objects/user.rb', line 48 def initialize(bot) # :nodoc: super(bot) end |
Instance Method Details
#can_join_groups ⇒ Object
Optional.
True, if the bot can be invited to groups.
53 54 55 |
# File 'lib/objects/user.rb', line 53 def can_join_groups @user.can_join_groups end |
#can_read_all_group_messages? ⇒ Boolean
Optional.
True, if privacy mode is disabled for the bot.
58 59 60 |
# File 'lib/objects/user.rb', line 58 def @user. end |
#supports_inline_queries? ⇒ Boolean
Optional.
True, if the bot supports inline queries.
63 64 65 |
# File 'lib/objects/user.rb', line 63 def supports_inline_queries? @user.supports_inline_queries end |