Skip to content

Commit

Permalink
save
Browse files Browse the repository at this point in the history
  • Loading branch information
akurilov committed Dec 26, 2023
1 parent 61d32bd commit 2b71d07
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2b71d07

Please sign in to comment.