Event class

This class listens to various events, such as message edits or new channel posts.

You probably want to use its methods through TeleDart, rather than accessing them directly.

Constructors

Event(String username, {bool sync = false})

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
username String
final

Methods

emitUpdate(Update update) → void
Emits update events
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onCallbackQuery() Stream<CallbackQuery>
Listens to callback query events
onChannelPost() Stream<Message>
Listens to channel post events
onChatJoinRequest() Stream<ChatJoinRequest>
Listen to chat join request events
onChatMember() Stream<ChatMemberUpdated>
Listen to chat member events
onChosenInlineResult() Stream<ChosenInlineResult>
Listens to chosen inline query events
onEditedChannelPost() Stream<Message>
Listens to edited channel post events
onEditedMessage() Stream<Message>
Listens to edited message events
onInlineQuery() Stream<InlineQuery>
Listens to inline query events
onMessage({String? entityType, dynamic keyword}) Stream<Message>
Listens to message events
onMyChatMember() Stream<ChatMemberUpdated>
Listen to my chat member events
onPoll() Stream<Poll>
Listen to poll events
onPollAnswer() Stream<PollAnswer>
Listen to poll answer events
onPreCheckoutQuery() Stream<PreCheckoutQuery>
Listens to pre checkout query events
onShippingQuery() Stream<ShippingQuery>
Listens to shipping query events
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited