Hi,
I am developing a bot that needs quick reply on direct messages.
The best I could get on quick reply is with this trurl:
twurl -t -A ‘Content-type: application/json’ /1.1/direct_messages/events/new.json -d ‘{“event”:{“type”:“message_create”,“message_create”:{“target”:{“recipient_id”:“999999999”},“message_data”:{“text”:“What syourfavoritetypeofbird?”,“quick_reply”:{“type”:“options”,“options”:[{“label”:“RedBird”,“description”:“Adescriptionabouttheredbird.”,“metadata”:“external_id_1”},{“label”:“BlueBird”,“description”:“Adescriptionaboutthebluebird.”,“metadata”:“external_id_2”},{“label”:“BlackBird”,“description”:“Adescriptionabouttheblackbird.”,“metadata”:“external_id_3”},{“label”:“WhiteBird”,“description”:“Adescriptionaboutthewhitebird.”,“metadata”:“external_id_4”}]}}}}}’
The json i taken from the official docs, just edited recipient_id, removed line breaks and the ’ in what’s.
Of course the account is authorized.
When I run this the destination user gets the text part only, buttons are completely ignored. Any advice? I suppose there is something wrong in my Json, but I cannot find it.