MCPcopy Create free account
hub / github.com/eternnoir/pyTelegramBotAPI / Handler

Class Handler

telebot/__init__.py:59–70  ·  view source on GitHub ↗

Class for (next step|reply) handlers.

Source from the content-addressed store, hash-verified

57
58
59class Handler:
60 """
61 Class for (next step|reply) handlers.
62 """
63
64 def __init__(self, callback, *args, **kwargs):
65 self.callback = callback
66 self.args = args
67 self.kwargs = kwargs
68
69 def __getitem__(self, item):
70 return getattr(self, item)
71
72
73class ExceptionHandler:

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…