telebot,update: change OnBoostRemoved register

pull/671/head v3.3.2-beta
nash 2 months ago committed by demget
parent 35d5dd372a
commit e16cc083f7

@ -111,7 +111,7 @@ const (
OnVideoChatScheduled = "\avideo_chat_scheduled" OnVideoChatScheduled = "\avideo_chat_scheduled"
OnBoost = "\aboost_updated" OnBoost = "\aboost_updated"
onBoostRemoved = "\aboost_removed" OnBoostRemoved = "\aboost_removed"
) )
// ChatAction is a client-side status indicating bot activity. // ChatAction is a client-side status indicating bot activity.

@ -319,7 +319,7 @@ func (b *Bot) ProcessUpdate(u Update) {
} }
if u.BoostRemoved != nil { if u.BoostRemoved != nil {
b.handle(onBoostRemoved, c) b.handle(OnBoostRemoved, c)
return return
} }
} }

Loading…
Cancel
Save