From e16cc083f7614d517eff79cc5d3e3f6c14a80fb3 Mon Sep 17 00:00:00 2001 From: nash Date: Mon, 18 Mar 2024 16:13:52 +0200 Subject: [PATCH] telebot,update: change OnBoostRemoved register --- telebot.go | 2 +- update.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/telebot.go b/telebot.go index 0e35062..4705587 100644 --- a/telebot.go +++ b/telebot.go @@ -111,7 +111,7 @@ const ( OnVideoChatScheduled = "\avideo_chat_scheduled" OnBoost = "\aboost_updated" - onBoostRemoved = "\aboost_removed" + OnBoostRemoved = "\aboost_removed" ) // ChatAction is a client-side status indicating bot activity. diff --git a/update.go b/update.go index edd49b6..63396dd 100644 --- a/update.go +++ b/update.go @@ -319,7 +319,7 @@ func (b *Bot) ProcessUpdate(u Update) { } if u.BoostRemoved != nil { - b.handle(onBoostRemoved, c) + b.handle(OnBoostRemoved, c) return } }