Skip to content

Commit

Permalink
style(examples/simple): change order of code lines
Browse files Browse the repository at this point in the history
  • Loading branch information
vitaliy-ukiru committed Jun 4, 2024
1 parent 7806155 commit 164f688
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/simple/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,14 @@ func main() {
}

g := bot.Group()
dp := dispatcher.NewDispatcher(g)
m := fsm.New(memory.NewStorage())

// Bind to bot group for call before filters.
// WrapContext adds fsm context into telebot context
// It helps make less allocations
g.Use(m.WrapContext)

dp := dispatcher.NewDispatcher(g)
dp.Dispatch(
m.New(
fsmopt.On("/stop"), // set endpoint
Expand Down

0 comments on commit 164f688

Please sign in to comment.