Class: BotUser

Inherits:
User
  • Object
show all
Defined in:
lib/objects/user.rb

Overview

Class returned only in get_me method.

This class extends from User class.

Instance Method Summary collapse

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_groupsObject

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.

Returns:

  • (Boolean)


58
59
60
# File 'lib/objects/user.rb', line 58

def can_read_all_group_messages?
  @user.can_read_all_group_messages
end

#supports_inline_queries?Boolean

Optional. True, if the bot supports inline queries.

Returns:

  • (Boolean)


63
64
65
# File 'lib/objects/user.rb', line 63

def supports_inline_queries?
  @user.supports_inline_queries
end