You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Each implementations of a messaging API (e.g messaging-api-messenger and messaging-api-line) differ in their API which prevents polymorphic use-cases where I pass an instance of a messaging API to a component of my application without explicitely knowing what real API this is.
For instance, messaging-api-messenger implements the sendText method where messaging-api-line implements the pushText method for sending messages, where they could both implement the same method name.
Is there any reason behind this choice ?
The text was updated successfully, but these errors were encountered:
It's intentional. We try to keep all of method names here to correspond with the original platform docs or API keys and do not have any hidden black magic. Accordingly, we can search keywords from official docs directly.
If you are looking for a framework to build your cross-platform bots, maybe you will like Bottender https://github.com/Yoctol/bottender. It is built on top of Messaging APIs.
Each implementations of a messaging API (e.g
messaging-api-messenger
andmessaging-api-line
) differ in their API which prevents polymorphic use-cases where I pass an instance of a messaging API to a component of my application without explicitely knowing what real API this is.For instance,
messaging-api-messenger
implements thesendText
method wheremessaging-api-line
implements thepushText
method for sending messages, where they could both implement the same method name.Is there any reason behind this choice ?
The text was updated successfully, but these errors were encountered: