TeledartApp class abstract
Main App class. Should be subclassed to create custom application
Call run to init application flow
TODO: implement an alternative of long polling
Constructors
- TeledartApp(String token)
Properties
-
commands
→ List<
CommandConstructor> -
List of commands to handle user's commands and actions like callback_query
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
-
middleware
→ List<
MiddlewareConstructor> -
List of middleware to handle raw
Update
objectno setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- telegram → TelegramEx
-
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onError(
Object exception, dynamic trace, dynamic data) → void - Catches all uncaught exceptions from custom commands and library itself
-
run(
) → void - Main application flow
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited