Skip to content

Commit

Permalink
Fix callbackquery handler name (#144)
Browse files Browse the repository at this point in the history
  • Loading branch information
TG-BOTSNETWORK authored Feb 16, 2024
1 parent d21da03 commit 30e81e5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ext/handlers/callbackquery.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,6 @@ func (cb CallbackQuery) CheckUpdate(b *gotgbot.Bot, ctx *ext.Context) bool {
return cb.Filter == nil || cb.Filter(ctx.CallbackQuery)
}

func (cb CallbackQuery) Name() string {
return fmt.Sprintf("inlinequery_%p", cb.Response)
func (cb *CallbackQuery) Name() string {
return fmt.Sprintf("callback_query_handler_%p", cb.Response)
}

0 comments on commit 30e81e5

Please sign in to comment.