aboutsummaryrefslogtreecommitdiff
path: root/api/telegram
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2026-04-05 03:50:32 +0700
committerShulhan <ms@kilabit.info>2026-04-05 03:52:47 +0700
commit778fd16011ec1d39c41b62372dc65f045183266e (patch)
treea6f6f26930c00d8ac3dd7bfa1fb476bd65454833 /api/telegram
parent6fba7b9ce3bcaf4225e5ab774a15ef7364ed1420 (diff)
downloadpakakeh.go-778fd16011ec1d39c41b62372dc65f045183266e.tar.xz
all: apply go fix
Diffstat (limited to 'api/telegram')
-rw-r--r--api/telegram/bot/message_request.go4
-rw-r--r--api/telegram/bot/response.go2
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"`