From 2b71d07e9c22f4611e99e02a567ee8641ac8e35b Mon Sep 17 00:00:00 2001 From: Andrei Kurilov <18027129+akurilov@users.noreply.github.com> Date: Tue, 26 Dec 2023 23:51:06 +0200 Subject: [PATCH] save --- main.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/main.go b/main.go index 266f9f1..b2e2d69 100644 --- a/main.go +++ b/main.go @@ -323,6 +323,10 @@ func main() { b.Handle(telebot.OnCheckout, service.ErrorHandlerFunc(service.PreCheckout(preCheckoutHandlers))) b.Handle(telebot.OnPayment, service.ErrorHandlerFunc(service.Payment(paymentHandlers))) // + b.Handle(telebot.OnChannelPost, func(tgCtx telebot.Context) error { + log.Info(fmt.Sprintf("Channel post: %+v", tgCtx.Message())) + return nil + }) b.Handle(telebot.OnAddedToGroup, func(tgCtx telebot.Context) error { chat := tgCtx.Chat() var msg *telebot.Message