Skip to content

Conversation

leonbuchnerbd
Copy link

rocketchat_API/APISections/base.py line 86

if you want to use the api to send multiline messages, you have to adapt the kwargs arguments.

the kwargs arguments are json serialized and have problems with escape sequences.

I fixed this here.

Copy link

Copy link
Owner

@jadolg jadolg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @leonbuchnerbd
thank you for your contribution.
I left you a comment here with some changes I think are worth doing and I think the linter isn't happy. That should be easy to fix with black.

Copy link

sonarqubecloud bot commented Sep 4, 2025

@leonbuchnerbd leonbuchnerbd requested a review from jadolg September 4, 2025 11:20
@leonbuchnerbd
Copy link
Author

i updated your change request. i hope that will works now. ty

Copy link
Owner

@jadolg jadolg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tests are broken and the linter is also not passing. Would you mind taking a look?

Comment on lines +15 to +17
payload["channel"] = channel
if room_id:
payload["roomId"] = room_id
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If both channel and roomId are not specified, this method should rise an exception

raise RocketMissingParamException("roomId or channel required")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants