Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/eternnoir/pyTelegramBotAPI
/ flooding_middleware.py
File
flooding_middleware.py
examples/asynchronous_telebot/middleware/flooding_middleware.py:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
# Just a little example of middleware handlers
2
3
from
telebot.asyncio_handler_backends
import
BaseMiddleware, CancelUpdate
4
from
telebot.async_telebot
import
AsyncTeleBot
Callers
nothing calls this directly
Calls
5
AsyncTeleBot
Class · 0.90
run
Method · 0.80
SimpleMiddleware
Class · 0.70
setup_middleware
Method · 0.45
polling
Method · 0.45
Tested by
no test coverage detected