Skip to content

[Regression] TypeError groups_history() missing 1 required positional argument: 'room_id' #336

@skjerns

Description

@skjerns

Installing the latest release leads to the following regression

rocket = RocketChat(user_id='xxxxxx',
                    auth_token='xxxxxx',
                    server_url='https://chat.domain.com')
group_id = 'xxxxxx'

res=rocket.groups_history(group_id)

TypeError: RocketChatGroups.groups_history() takes 1 positional argument but 2 were given

However, once I remove the argument (which doesnt make sense) and call it with rocket.groups_history() it tells me

TypeError: RocketChatGroups.groups_history() missing 1 required positional argument: 'room_id'

might this be related?

rocket.groups_history()
/tmp/ipykernel_2914827/585827177.py:1: DeprecationWarning: The 'im' API section is deprecated. Please use the 'dm' API section instead.

however, calling rocket.dm_history(group_id) also doesn't solve the issue

workaround

For now I've downgraded to 1.37 and there everything seems to work smoothly.

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions