Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
type API struct {
// contains filtered or unexported fields
}
API
func (*API) GetWebhookHandler ¶
func (a *API) GetWebhookHandler(cu chan<- Update, e chan<- error) func(w http.ResponseWriter, r *http.Request)
GetWebhookHandler returns http.HandleFunc that parses webhooks
func (*API) SendMessage ¶
func (a *API) SendMessage(to string, message string) (*MessageResponse, error)
SendMessage with `message` text to `to` participant
type MessageResponse ¶
type Response ¶
type Response struct { Response struct { StatusCode int `json:"statusCode"` StatusText string `json:"statusText"` RequestId string `json:"requestId"` Data *MessageResponse `json:"data"` } `json:"response"` }
type WebhookRequest ¶
Click to show internal directories.
Click to hide internal directories.