LongPolling class
Update fetcher which uses the long polling method.
It is the default update fetching method, see TeleDart.start to learn how to use webhooks instead.
- Inheritance
-
- Object
- AbstractUpdateFetcher
- LongPolling
Constructors
Properties
-
allowedUpdates
↔ List<
String> ? -
getter/setter pair
- defaultRetryDelay → Duration
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isPolling → bool
-
no setter
- limit ↔ int
-
getter/setter pair
- maxTimeout → int
-
final
- offset ↔ int
-
getter/setter pair
- retryDelay ↔ Duration
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- telegram → Telegram
-
final
- timeout ↔ int
-
getter/setter pair
Methods
-
emitUpdate(
Update update) → void -
Add
update
to the stream.inherited -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onUpdate(
) → Stream< Update> -
When
update
is added to stream.inherited -
start(
) → Future< void> -
Start the long poll, throws LongPollingException on error
or a long poll is already in place.
override
-
stop(
) → Future< void> -
Stop the long poll.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited