def get_objects(method, key)
      self.class.get("/#{method}", query: { token: @token }).tap do |response|
        raise "error retrieving #{key} from #{method}: #{response.fetch('error', 'unknown error')}" unless response['ok']
      end.fetch(key)
    end
def get_objects(method, key)
      self.class.get("/#{method}", query: { token: @token }).tap do |response|
        raise "error retrieving #{key} from #{method}: #{response.fetch('error', 'unknown error')}" unless response['ok']
      end.fetch(key)
    end
get a channel, group, im or user list