pytdbot.handlers.handler

class pytdbot.handlers.handler.Handler(func, update_type, filter=None, position=None, inner_object=False, timeout=None, is_from_plugin=False)[source]

Bases: object

A handler class.

Parameters:
  • func (Callable)

  • update_type (str)

  • filter (Filter)

  • position (int)

  • inner_object (bool)

  • timeout (float)

  • is_from_plugin (bool)

__init__(func, update_type, filter=None, position=None, inner_object=False, timeout=None, is_from_plugin=False)[source]
Parameters:
  • func (Callable)

  • update_type (str)

  • filter (Filter | None)

  • position (int | None)

  • inner_object (bool)

  • timeout (float | None)

  • is_from_plugin (bool)

Return type:

None