From de4373043844902eadf6a51633154a8264ecfd38 Mon Sep 17 00:00:00 2001 From: drifteri Date: Tue, 11 Jun 2024 16:22:59 +0300 Subject: [PATCH] Use any type for ChatID in SetGameScoreParams and GetGameHighScoreParams (#88) --- methods_params.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/methods_params.go b/methods_params.go index d33acd6..7ddaa7f 100644 --- a/methods_params.go +++ b/methods_params.go @@ -924,14 +924,14 @@ type SetGameScoreParams struct { Score int `json:"score"` Force bool `json:"force,omitempty"` DisableEditMessage bool `json:"disable_edit_message,omitempty"` - ChatID int `json:"chat_id,omitempty"` + ChatID any `json:"chat_id,omitempty"` MessageID int `json:"message_id,omitempty"` InlineMessageID int `json:"inline_message_id,omitempty"` } type GetGameHighScoresParams struct { UserID int64 `json:"user_id"` - ChatID int `json:"chat_id,omitempty"` + ChatID any `json:"chat_id,omitempty"` MessageID int `json:"message_id,omitempty"` InlineMessageID int `json:"inline_message_id,omitempty"` }