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

add: setter token for response struct

This commit is contained in:
Albert Le Batteux 2019-01-01 22:26:58 +01:00
parent 34e47adaff
commit 142c3f5add
No known key found for this signature in database
GPG Key ID: 6ECDB1C9555BCE18

View File

@ -87,6 +87,11 @@ type Response struct {
to Recipient to Recipient
} }
// SetToken is for using DispatchMessage from outside.
func (r *Response) SetToken(token string) {
r.token = token
}
// Text sends a textual message. // Text sends a textual message.
func (r *Response) Text(message string, messagingType MessagingType, tags ...string) error { func (r *Response) Text(message string, messagingType MessagingType, tags ...string) error {
return r.TextWithReplies(message, nil, messagingType, tags...) return r.TextWithReplies(message, nil, messagingType, tags...)