From 77a941fa6427b3ef88e55af69d391b24173b7dd3 Mon Sep 17 00:00:00 2001 From: Toni Saarinen Date: Tue, 11 Jun 2024 10:54:04 +0300 Subject: [PATCH] Use any type for ChatID in SetGameScoreParams and GetGameHighScoreParams --- 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"` }