Skip to content

Commit

Permalink
fix: fix test.
Browse files Browse the repository at this point in the history
  • Loading branch information
alariczq committed Jul 5, 2022
1 parent b71f7c5 commit dac0cd8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ func main() {

// tgbot.WithWorkersNum(-1), // use can use unlimited workers.

tgbot.WithWorkersPool(pool),
tgbot.WithWorkersPool(tgbot.NewAntsPool(pool)),

tgbot.WithUpdatesHandler(func(ctx *tgbot.Context) {
err := ctx.ReplyText(ctx.Message().Text, func(c *tgbotapi.MessageConfig) {
Expand Down
2 changes: 1 addition & 1 deletion tgbot_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ func ExampleNewBot() {
bot := tgbot.NewBot(api,
tgbot.WithTimeout(2*time.Second),

tgbot.WithWorkersPool(pool),
tgbot.WithWorkersPool(tgbot.NewAntsPool(pool)),

tgbot.WithUpdatesHandler(func(ctx *tgbot.Context) {
err := ctx.ReplyText(ctx.Message().Text, func(c *tgbotapi.MessageConfig) {
Expand Down

0 comments on commit dac0cd8

Please sign in to comment.