The documentation for the drafty format (
link) specifies several actions to click on the button, among them is the "
note" action.
In practice, if I specify this action, the error "Unknown action in form note" occurs. Looking into the code, I saw that there is actually no processing of such an action (link).
Test message with buttons:
{"data":{"topic":"usr30xS93xaTC8","from":"usr30xS93xaTC8","ts":"2024-08-30T12:00:53.400Z","seq":82,"head":{"mime":"text/x-drafty"},"content":{"ent":[{"data":{"act":"note","name":"generate_group"},"tp":"BN"},{"data":{"act":"note","name":"make_root"},"tp":"BN"}],"fmt":[{"len":4,"tp":"ST"},{"at":16,"len":1,"tp":"BR"},{"at":17,"len":16},{"at":33,"key":1,"len":25},{"at":58,"len":1,"tp":"BR"}],"txt":"Меню управления: Генерация групп Сделать пользователя ROOT test"}}}
Handler in devtools: