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

api RawAPI
Raw API instance.
latefinal
hashCode int
The hash code for this object.
no setterinherited
isActive bool
Flag to check if the fetcher is running.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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