Fetcher class abstract
Fetcher - This is the base class for all fetchers. It is used to fetch updates from the Telegram API. You can use this class to create your own fetcher. Currently, there are two fetchers: LongPolling and Webhook.
- Implementers
Constructors
- Fetcher()
- Creates a new fetcher.
Properties
Methods
-
addUpdate(
Update update) → void - Emit new update into the stream.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onError(
FutureOr< void> onError(BotError err)) → void - Sets the error handler for long polling.
-
onUpdate(
) → Stream< Update> - Handler for new updates.
-
setApi(
RawAPI api) → void - Sets the Raw API instance.
-
start(
) → Future< void> - Starts fetching updates.
-
stop(
) → Future< void> - Stops fetching updates.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited