From 858fbb73c109d86549901f77b3bc868f280592b4 Mon Sep 17 00:00:00 2001 From: nightnoryu Date: Mon, 2 Jun 2025 21:33:09 +0300 Subject: [PATCH] Bump go-telegram-bot version --- cmd/anon3anon/main.go | 2 +- go.mod | 2 +- go.sum | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cmd/anon3anon/main.go b/cmd/anon3anon/main.go index 9d2d252..87b5c20 100644 --- a/cmd/anon3anon/main.go +++ b/cmd/anon3anon/main.go @@ -48,7 +48,7 @@ func initBotOptions(conf *config, logger jsonlog.Logger) []bot.Option { return []bot.Option{ bot.WithMiddlewares(middleware.NewLoggingMiddleware(logger)), - bot.WithMessageTextHandler("/start", bot.MatchTypeExact, startCommandHandler), + bot.WithMessageTextHandler("start", bot.MatchTypeCommand, startCommandHandler), bot.WithDefaultHandler(anonymousMessagesHandler), } } diff --git a/go.mod b/go.mod index 89831fa..dadb669 100644 --- a/go.mod +++ b/go.mod @@ -3,7 +3,7 @@ module github.com/nightnoryu/anon3anon go 1.24 require ( - github.com/go-telegram/bot v1.13.3 + github.com/go-telegram/bot v1.15.0 github.com/kelseyhightower/envconfig v1.4.0 github.com/sirupsen/logrus v1.9.3 ) diff --git a/go.sum b/go.sum index bf8df50..62d24b4 100644 --- a/go.sum +++ b/go.sum @@ -1,8 +1,8 @@ github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= -github.com/go-telegram/bot v1.13.3 h1:r2erpHI5rMQsR5TFWJ/XVqWHq9R228fcaejLFvXJsmM= -github.com/go-telegram/bot v1.13.3/go.mod h1:i2TRs7fXWIeaceF3z7KzsMt/he0TwkVC680mvdTFYeM= +github.com/go-telegram/bot v1.15.0 h1:/ba5pp084MUhjR5sQDymQ7JNZ001CQa7QjtxLWcuGpg= +github.com/go-telegram/bot v1.15.0/go.mod h1:i2TRs7fXWIeaceF3z7KzsMt/he0TwkVC680mvdTFYeM= github.com/kelseyhightower/envconfig v1.4.0 h1:Im6hONhd3pLkfDFsbRgu68RDNkGF1r3dvMUtDTo2cv8= github.com/kelseyhightower/envconfig v1.4.0/go.mod h1:cccZRl6mQpaq41TPp5QxidR+Sa3axMbJDNb//FQX6Gg= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=