We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use telebot middlewares https://github.com/tucnak/telebot/releases/tag/v3.0.0
// Global-scoped middleware: b.Use(middleware.Logger()) // logs every incoming handled event b.Use(middleware.AutoRespond()) // automatically responds to every callback // Group-scoped middleware: adminOnly := b.Group() adminOnly.Use(middleware.Whitelist(adminIDs...)) adminOnly.Handle("/ban", onBan) adminOnly.Handle("/kick", onKick) // Handler-scoped middleware: b.Handle(tele.OnText, onText, middleware.IgnoreVia())
The text was updated successfully, but these errors were encountered:
javiyt
When branches are created from issues, their pull requests are automatically linked.
Use telebot middlewares https://github.com/tucnak/telebot/releases/tag/v3.0.0
The text was updated successfully, but these errors were encountered: