From 38cfd1557f019823172b1ef42186af3d17863a62 Mon Sep 17 00:00:00 2001 From: Negasus Date: Tue, 27 Feb 2024 11:06:34 +0300 Subject: [PATCH] - fix `CallbackQuery.Message` field type from `InaccessibleMessage` to `MaybeInaccessibleMessage` --- CHANGELOG.md | 4 ++++ models/callback_query.go | 14 +++++++------- 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f72f0cb..1b55e99 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## v1.1.4 (2024-02-27) + +- fix `CallbackQuery.Message` field type from `InaccessibleMessage` to `MaybeInaccessibleMessage` + ## v1.1.3 (2024-02-22) - fix json tag for DeleteMessagesParams.MessageIDs diff --git a/models/callback_query.go b/models/callback_query.go index 9ce5f57..0a18ea5 100644 --- a/models/callback_query.go +++ b/models/callback_query.go @@ -2,11 +2,11 @@ package models // CallbackQuery https://core.telegram.org/bots/api#callbackquery type CallbackQuery struct { - ID string `json:"id"` - From User `json:"from,omitempty"` - Message InaccessibleMessage `json:"message,omitempty"` - InlineMessageID string `json:"inline_message_id,omitempty"` - ChatInstance string `json:"chat_instance,omitempty"` - Data string `json:"data,omitempty"` - GameShortName string `json:"game_short_name,omitempty"` + ID string `json:"id"` + From User `json:"from,omitempty"` + Message MaybeInaccessibleMessage `json:"message,omitempty"` + InlineMessageID string `json:"inline_message_id,omitempty"` + ChatInstance string `json:"chat_instance,omitempty"` + Data string `json:"data,omitempty"` + GameShortName string `json:"game_short_name,omitempty"` }