1
0
mirror of synced 2024-11-22 04:46:05 +03:00
Commit Graph

14 Commits

Author SHA1 Message Date
Michele Gargiulo
66c2f90a07 Adds missing properties for web_url button in StructuredMessageButton. (#29)
* Adds the Referral webhook and PostBacks's referral structure

* Adds missing properties for web_url button in StructuredMessageButton.
See https://developers.facebook.com/docs/messenger-platform/send-api-reference/url-button

* Fixes the type of StructuredMessageButton.MessengerExtensions
2017-04-09 09:56:54 -07:00
Wilson Wang
74b5cbe4ac Add AttachmentWithReplies method for sending attachment together with replies. (#27)
* add json omitempty on button Title field

Share Button only allows the Type field to be presented in the serialized data. Otherwise, you got facebook error:

"Facebook error : (#100) Param [elements][0][buttons][0][title] must be a non-empty UTF-8 encoded string"

* add attachement to senddata

* changes after pull request reviews
2017-03-15 10:29:26 -07:00
Wilson Wang
998c23c3e9 add json omitempty on button Title field (#25)
Share Button only allows the Type field to be presented in the serialized data. Otherwise, you got facebook error:

"Facebook error : (#100) Param [elements][0][buttons][0][title] must be a non-empty UTF-8 encoded string"
2017-02-06 08:05:01 -08:00
Trey Richards
12da86e59e Add AttachmentData method (#18) 2016-11-11 14:28:32 +11:00
Bo-Yi Wu
39df036128 Add support for sending attachments by a URL (#15) 2016-10-09 14:28:21 +11:00
Depado
6970a1b09a Correctly handle Facebook errors (#14)
* Sending back the error message of Facebook as an error for some function calls

* Adding error handling for other function calls

* Private function to parse Facebook's response

* Handling errors for ProfileByID function
2016-10-08 00:28:27 +11:00
Ilyas Salikhov
f7a3ef787f * Added ability to set greeting setting, get started setting and persistent menu setting
* Added IsEcho in Message which is indicator of own messages
* Added QuickReply in Message for sending of quick reply buttons with message
* Added mux parameter in Messenger constructor. It is useful when single go app processes the several bots
* Added Messenger.SenderAction which allows to show writing and reading status
* Added Messenger.GreetingSetting and Messenger.CallToActionsSetting which allow to set the bot settings
* Fixed bug with nil returning instead of error object
2016-09-11 22:49:56 +03:00
Garry POUPIN
5a7a8679ad Add Replies feature (#5)
* add replies payload and method

* clean comment

* improve TextWithReplies and  spelling correction

* fix last typo
2016-07-08 23:49:35 +10:00
Harrison
036b286d6b Fix styling 2016-05-04 18:09:34 +10:00
Panich Maxim
09dbfd4b26 Println clear 2016-05-03 16:53:14 +03:00
Panich Maxim
eb0e72a5dc Api update
Postback action handler
Dynamic WebHook
Button Template Message
Generic Template Message
2016-05-03 16:42:25 +03:00
Harrison Shoebridge
f8da84d8c9 Add image sending 2016-04-16 18:01:32 +10:00
Harrison
b206661b37 Add Response documentation 2016-04-14 10:23:45 +10:00
Harrison Shoebridge
7fed4ecf28 Add message sending 2016-04-13 17:02:02 +10:00