1
0
mirror of synced 2024-11-21 20:36:06 +03:00
Commit Graph

43 Commits

Author SHA1 Message Date
081a4d5aa8 allow specifying content-type while sending a file 2022-11-07 15:48:47 +03:00
5bdc2eb804 Sender actions support 2022-07-29 15:40:30 +03:00
Tyschitskaya Maria
76d0d601a0 unmarshal error text 2022-01-28 12:24:58 +03:00
Tyschitskaya Maria
c1e9fd594d buffer from decoder in unmarshal error 2022-01-27 17:18:26 +03:00
Tyschitskaya Maria
cd6859b074 add unmarshal error 2022-01-26 18:20:09 +03:00
c4c6c4faa3 ability to specify send api version 2021-06-04 14:42:12 +03:00
60ab2b27eb
Correct declaration for Buttons 2021-02-17 15:25:52 +03:00
d4acc115a0
Pointer instead of slice in StructuredMessageElement (#3) 2021-02-17 15:15:29 +03:00
94f238346c
Messenger downstream patches (#1)
* add processing response from facebook
* add receipt message payload
* Restore checkFacebookError
* add metadata in MessageData
* improve optional ProfileFields
* Fix conflict with receiving.go while cherry-picking
* Add title to payload
* Move to Github Actions & new package name
* fix for example
* remove limit for parallel runs
2021-02-09 11:14:42 +03:00
Pranas Kiziela
485d2d86be Close response body 2019-11-15 16:01:19 +02:00
Pranas Kiziela
492438f895 Expose error_subcode property for errors 2019-10-14 10:58:59 +03:00
Sergey Parshukov
fa7aab250c
Wrapped errors with xerrors 2019-07-31 00:38:58 +03:00
Sergey Parshukov
60d8d3f95a
Fixed staticcheck warnings 2019-07-25 14:37:27 +03:00
Harrison Shoebridge
19ba0ed851
Merge pull request #60 from ahmdaeyz/master
Adding missing json fields and list template method
2019-04-17 10:49:06 +10:00
Ahmed Aboelyazeed
14ff2aecb8 add list template 2019-04-14 12:28:09 +02:00
Daniel Fischer
241e864fb3 Support for passThreadControl 2019-03-25 11:42:34 -07:00
Pranas Kiziela
52e988e293 Add ShareContents property 2019-02-26 17:07:06 -05:00
Pranas Kiziela
3848b47c06 Add AttachmentID property 2019-02-25 17:52:06 -05:00
Ahmed Aboelyazeed
efd9d44236 add attachment.fallback json fields 2019-02-22 18:16:14 +02:00
Albert Le Batteux
142c3f5add
add: setter token for response struct 2019-01-01 22:27:26 +01:00
Albert Le Batteux
34e47adaff
fix: omitempty item_url 2019-01-01 22:27:26 +01:00
Pranas Kiziela
a9882ddddb Add default_action property to attachments 2018-11-13 15:41:30 +02:00
Pranas Kiziela
5f41235104 Add sharable property to attachments 2018-11-13 15:05:52 +02:00
Pranas Kiziela
92cd8b953b Add image_aspect_ratio property to attachments 2018-11-13 15:01:10 +02:00
Vytautas Galaunia
78e9ea3089 Add TopElementStyle attribute to StructuredMessagePayload 2018-10-29 13:21:04 +02:00
xuefeng Huang
525ba1bedc added messaging_type for FB send API request (#37)
* added messaging_type for FB send API request

* added note in readme
2018-02-06 13:15:36 +11:00
DeziderMesko
2a76034a05 Correct content-type for attachments (#33)
* fixed error return value

* content-type correctly set
2017-07-31 19:57:34 -07:00
DeziderMesko
5d938afef2 fixed error return value (#32) 2017-07-31 12:24:49 -07:00
Wilson Wang
64c15a121b Reuse Post Code (#28)
* 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

* add PostToMessenger method and ensure the result check in it

* change the function name
2017-04-09 09:58:35 -07:00
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