raw
Creates messages or making calls to the each platform API, by sending specific raw parameters for each of them.
raw(params=Hash, type=String)
raw(params=Hash, type=String)
Platforms
Platform | Supported |
---|---|
Messenger | |
Telegram |
Usage
For the correct operation of this method, there are parameters on each platform that must not be included, since Kogno will include them subsequently.
Messenger
Example call extracted from Messenger Documentation
The params
in raw()
method will populate the "message"
field from the JSON in the call above.
WhatsApp
Example call extracted from WhatsApp Documentation
Must not be included the following params: messaging_product
and recipient_type
since Kogno will include them subsequently.
Telegram
Only chat_id
must not be included, for more information read the Telegram documentation.
Additionally, in Telegram, the argument type
can be passed with values like "sendPhoto"
, "sendAudio"
, "forwardMessage"
and so on. If none is defined, by default the method used will be "sendMessage"
.
View Full Available Methods in Telegram.
Last updated