티스토리 뷰

공부

[Python] slack chat.postMessage line break

승가비 2020. 5. 30. 04:36
728x90
message.replace("\\n","\n")

https://stackoverflow.com/questions/37195607/slack-api-using-n-for-new-lines-does-not-work-in-chat-postmessage-golang

 

Slack API Using \n for new lines does not work in chat.postMessage (golang)

I'm using the Slack web API to post messages to a channel in Go. I'm trying to support multi-line messages in the text field. According to the documentation simply adding a \n should work but it's ...

stackoverflow.com

 

728x90

'공부' 카테고리의 다른 글

[Python] export PYTHONPATH='/xxx/xxx'  (0) 2020.05.30
[Sh] sudo -s  (0) 2020.05.30
[Spring] filter logger by MDC (get IP & UserAgent)  (0) 2020.05.30
[SpringBoot] multiple filter  (0) 2020.05.30
[Git] rm *.xxx files  (0) 2020.05.30
댓글