peyk.dispatcher.polling¶
Functions
|
Performs the make poller operation for the dispatcher client. |
|
Clear supported webhooks before polling when requested. |
Classes
|
BalePoller provides the dispatcher API surface used by peyk. |
|
Fetch raw updates while owning the platform-specific offset. |
|
RubikaPoller provides the dispatcher API surface used by peyk. |
|
TelegramPoller provides the dispatcher API surface used by peyk. |
- class peyk.dispatcher.polling.BalePoller(bot: Bot[object], timeout: int, allowed_updates: Sequence[str] | None)[source]¶
Bases:
objectBalePoller provides the dispatcher API surface used by peyk.
- class peyk.dispatcher.polling.Poller(*args, **kwargs)[source]¶
Bases:
Protocol[RawT]Fetch raw updates while owning the platform-specific offset.
- class peyk.dispatcher.polling.RubikaPoller(bot: Bot[object], timeout: int, allowed_updates: Sequence[str] | None)[source]¶
Bases:
objectRubikaPoller provides the dispatcher API surface used by peyk.
- class peyk.dispatcher.polling.TelegramPoller(bot: Bot[object], timeout: int, allowed_updates: Sequence[str] | None)[source]¶
Bases:
objectTelegramPoller provides the dispatcher API surface used by peyk.
- peyk.dispatcher.polling.make_poller(bot: Bot[object], timeout: int, allowed_updates: Sequence[str] | None) Poller[object][source]¶
Performs the make poller operation for the dispatcher client.
- Parameters:
bot – Value used by this operation.
timeout – Maximum time to wait for the operation.
allowed_updates – Value used by this operation.
- Returns:
Result produced by the dispatcher operation.