This repository has been archived by the owner on Jan 1, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 72
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Added ability to set greeting setting, get started setting and pers…
…istent 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
- Loading branch information
Showing
5 changed files
with
155 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
package messenger | ||
|
||
// GreetingSetting is the setting for greeting message | ||
type GreetingSetting struct { | ||
SettingType string `json:"setting_type"` | ||
Greeting GreetingInfo `json:"greeting"` | ||
} | ||
|
||
// GreetingInfo contains greeting message | ||
type GreetingInfo struct { | ||
Text string `json:"text"` | ||
} | ||
|
||
// CallToActionsSetting is the settings for Get Started and Persist Menu | ||
type CallToActionsSetting struct { | ||
SettingType string `json:"setting_type"` | ||
ThreadState string `json:"thread_state"` | ||
CallToActions []CallToActionsItem `json:"call_to_actions"` | ||
} | ||
|
||
// CallToActionsItem contains Get Started button or item of Persist Menu | ||
type CallToActionsItem struct { | ||
Type string `json:"type,omitempty"` | ||
Title string `json:"title,omitempty"` | ||
Payload string `json:"payload,omitempty"` | ||
URL string `json:"url,omitempty"` | ||
} |