diff options
Diffstat (limited to 'api')
| -rw-r--r-- | api/telegram/bot/message_request.go | 4 | ||||
| -rw-r--r-- | api/telegram/bot/response.go | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/api/telegram/bot/message_request.go b/api/telegram/bot/message_request.go index 227abb3d..03899c96 100644 --- a/api/telegram/bot/message_request.go +++ b/api/telegram/bot/message_request.go @@ -8,12 +8,12 @@ package bot type messageRequest struct { // Unique identifier for the target chat or username of the target // channel (in the format @channelusername). - ChatID interface{} `json:"chat_id"` + ChatID any `json:"chat_id"` // Additional interface options. A JSON-serialized object for an // inline keyboard, custom reply keyboard, instructions to remove // reply keyboard or to force a reply from the user. - ReplyMarkup interface{} `json:"reply_markup,omitempty"` + ReplyMarkup any `json:"reply_markup,omitempty"` // Text of the message to be sent, 1-4096 characters after entities // parsing. diff --git a/api/telegram/bot/response.go b/api/telegram/bot/response.go index e68803d6..8ce26c99 100644 --- a/api/telegram/bot/response.go +++ b/api/telegram/bot/response.go @@ -18,7 +18,7 @@ const ( // response is the internal, generic response from API. type response struct { - Result interface{} `json:"result"` + Result any `json:"result"` Parameters *responseParameters `json:"parameters"` Description string `json:"description"` ErrorCode int `json:"error_code"` |
