New API for Direct Messaging between network participants #270
Replies: 7 comments 5 replies
-
|
The |
Beta Was this translation helpful? Give feedback.
-
|
My one observation is regarding "reply to" feature which is a reply to a specific message (like in Whatsapp) in a chat session. Usually a message_id and thread_id would have helped in making that happen. One more requirement in chat which might come later is a CTA button with URL to enable click actions in chat |
Beta Was this translation helpful? Give feedback.
-
|
Below is attempt to include CTA (Call to Action) options in message. Three CTA types can be used just like in Whatsapp: Button, List of choices and Quick reply (eg. Yes/No or Pickup/Home Delivery). ctatext therefore is an array below. For button type, only first element of array will be used as Button text { |
Beta Was this translation helpful? Give feedback.
-
|
Done
Manoj
…On Fri, 1 Jul 2022, 10:15 Ravi Prakash, ***@***.***> wrote:
@manojcraftsvilla <https://github.com/manojcraftsvilla> Adding a CTA is
terrific idea! Can you modify the above json and paste it below?
—
Reply to this email directly, view it on GitHub
<#270 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AE7YU3W5CRECR4GBFNZY6KTVRZZX5ANCNFSM52JOXI7Q>
.
You are receiving this because you were mentioned.Message ID:
<beckn/protocol-specifications/repo-discussions/270/comments/3061100@
github.com>
|
Beta Was this translation helpful? Give feedback.
-
|
Re-pasting the JSON in prettified format |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
|
Re-pasting the above message without promotional content. Pasting an XMPP message format with image sharing and html for reference: |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
There have been a couple of requests made by members of the DHP community to introduce a
messageAPI that allows a BAP to send a DM to the BPP and vice-versa.It did not make sense to create an
on_messagecallback API as messages are independent. Hence just amessageAPI.Below is an inital draft of the
messageAPI.This not only has text messaging but also allows sharing of files, contacts and location.
Thoughts?
Beta Was this translation helpful? Give feedback.
All reactions