Expand description

Receiving updates from Telegram.

The key trait here is UpdateListener. You can get its implementation from:

  • polling_default function, which returns a default long polling listener.
  • polling function, which returns a long polling listener with your configuration.
  • Various functions in the webhooks module that return webhook listeners

And then you can extract updates from it or pass them directly to a Dispatcher.

Telegram supports two ways of getting updates: long polling and webhooks. For the former see polling and polling_default, for the latter see the webhooks module.

Modules

webhookswebhooks
Implementations of webhook update listeners - an alternative (to polling) way of receiving updates from telegram.

Structs

A polling update listener.
Builder for polling update listener.
A listener created from functions.

Traits

UpdateListener’s supertrait/extension.
An update listener.

Functions

pollingDeprecated
Returns a long polling update listener with some additional options.
Returns a long polling update listener with timeout of 10 seconds.