raw
Creates messages or making calls to the each platform API, by sending specific raw parameters for each of them.
Last updated
Was this helpful?
Creates messages or making calls to the each platform API, by sending specific raw parameters for each of them.
Last updated
Was this helpful?
raw(params=Hash, type=String)
Messenger
Telegram
For the correct operation of this method, there are parameters on each platform that must not be included, since Kogno will include them subsequently.
Example call extracted from
The params
in raw()
method will populate the "message"
field from the JSON in the call above.
Must not be included the following params: messaging_product
and recipient_type
since Kogno will include them subsequently.
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"
.
Example call extracted from
Only chat_id
must not be included, for more information read the .
View .