Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Receive ¶
type Receive struct { Question *query.Question `json:"question"` ReplyOpts *ReplyOpts Channel string }
Receive question from channel with reply options
func (*Receive) Conversation ¶ added in v0.6.0
Conversation returns a string of the unique conversations the bot is having. The definition of a "conversation" is different depending on the channel used. For example Slack conversations happen in Slack threads, which is different than a conversation in Twilio between a Sender and Recipient. In the Slack example this allows us to have multiple different conversations with the bot in different Slack channels and threads
type ReplyOpts ¶
type ReplyOpts struct { Telegram TelegramReplyOpts Twilio TwilioReplyOpts Slack SlackReplyOpts }
ReplyOpts allow you to configure how the reply is sent
type SlackReplyOpts ¶
SlackReplyOpts are options used to reply with Slack
type TelegramReplyOpts ¶
type TelegramReplyOpts struct {
Recipient string
}
TelegramReplyOpts are options used to reply with Telegram
type TwilioReplyOpts ¶
type TwilioReplyOpts struct {
Recipient string
}
TwilioReplyOpts are options used to reply with Twilio