diff options
Diffstat (limited to 'messages.go')
-rw-r--r-- | messages.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/messages.go b/messages.go index 79c9e78..5131479 100644 --- a/messages.go +++ b/messages.go @@ -106,10 +106,10 @@ func (a *messages) DeleteMessage(messageID int) (*SimpleQueryResult, error) { } //AnswerOnCallback should be called to send an answer after a user has clicked the button. The answer may be an updated message or/and a one-time user notification. -func (a *messages) AnswerOnCallback(callbackID int, callback *CallbackAnswer) (*SimpleQueryResult, error) { +func (a *messages) AnswerOnCallback(callbackID string, callback *CallbackAnswer) (*SimpleQueryResult, error) { result := new(SimpleQueryResult) values := url.Values{} - values.Set("callback_id", strconv.Itoa(int(callbackID))) + values.Set("callback_id", callbackID) body, err := a.client.request(http.MethodPost, "answers", values, callback) if err != nil { return result, err |