Module: Rubydium::Mixins::RightsChecking

Defined in:
lib/rubydium/mixins/rights_checking.rb

Instance Method Summary collapse

Instance Method Details

#user_info(user_id = config.bot_id) ⇒ Object



4
5
6
7
8
9
# File 'lib/rubydium/mixins/rights_checking.rb', line 4

def (user_id=config.bot_id)
  @user_info ||= {}
  return @user_info[user_id] if @user_info[user_id]

  @user_info[user_id] = @api.get_chat_member(chat_id: @chat.id, user_id: user_id).dig("result")
end