Skip to content

Count parameter is not working #356

@indierodo

Description

@indierodo

Describe the bug
Count parameter is not doing anything. Library version 1.37.0 does not have this issue. Can someone please help me try to reproduce? Is it just me?

To Reproduce
Steps to reproduce the behavior:

  1. Just add a count parameter:
    messages = {}
    for message in rocket.channels_history('GENERAL', count=1):
    print(message)

Expected behavior
This should return only one message. It's returning all of them.

Environment (please complete the following information):

  • OS: macOS Sonoma 14.2 with Python 3.13.4
  • Rocket.Chat Version: 8.1.0. Also, I've tested the endpoints manually in Postman to discard a server problem
  • Library Version: [e.g. 3.1.0] 3.1.0.

Additional context
Please let me know what other information I need to provide.

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions