Skip to content

Commit

Permalink
- fix CallbackQuery.Message field type from InaccessibleMessage t…
Browse files Browse the repository at this point in the history
…o `MaybeInaccessibleMessage`
  • Loading branch information
negasus committed Feb 27, 2024
1 parent 335f41c commit 38cfd15
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
14 changes: 7 additions & 7 deletions models/callback_query.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
}

0 comments on commit 38cfd15

Please sign in to comment.