-
Notifications
You must be signed in to change notification settings - Fork 95
replace kwargs double backslash for multiline messages #294
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
|
There was a problem hiding this 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.
|
i updated your change request. i hope that will works now. ty |
There was a problem hiding this 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?
payload["channel"] = channel | ||
if room_id: | ||
payload["roomId"] = room_id |
There was a problem hiding this comment.
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")
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.