fix: all ID from int to int64 to avoid 32bits machine break (#2191)

Fix all ID from int to int64 to avoid 32bits machine break
This commit is contained in:
Athurg Gooth
2023-09-06 21:14:07 +08:00
committed by GitHub
parent 87a1d4633e
commit 9987337eca
9 changed files with 15 additions and 15 deletions

View File

@@ -7,10 +7,10 @@ import (
)
// SendReplyMessage make a sendMessage api request.
func (b *Bot) SendReplyMessage(ctx context.Context, chatID, replyID int, text string) (*Message, error) {
func (b *Bot) SendReplyMessage(ctx context.Context, chatID, replyID int64, text string) (*Message, error) {
formData := url.Values{
"reply_to_message_id": {strconv.Itoa(replyID)},
"chat_id": {strconv.Itoa(chatID)},
"reply_to_message_id": {strconv.FormatInt(replyID, 10)},
"chat_id": {strconv.FormatInt(chatID, 10)},
"text": {text},
}