RocketChat / docs-old

Rocket.Chat's user documentation.
https://docs.rocket.chat
335 stars 769 forks source link

Example with "blocks" in chat.sendMessage API #2080

Closed yoyojin-dev closed 2 years ago

yoyojin-dev commented 2 years ago

In docs https://developer.rocket.chat/reference/api/rest-api/endpoints/core-endpoints/chat-endpoints/sendmessage possibility to use UIKit "blocks" section is not described, but it works. And as it works, I have a question - how can I send DM by chat.sendMessage API with blocks section? I know I can use chat.postMessage but "blocks" doesn't work there, so I wonder if I'm able to use chat.sendMessage or is it possible to send "blocks" through chat.postMessage.

yoyojin-dev commented 2 years ago

Just find out, that it is better to move the question to https://github.com/RocketChat/developer-docs