Update class
This object represents an incoming update.
At most one of the optional parameters can be present in any given update.
- Annotations
-
- @JsonSerializable(fieldRename: FieldRename.snake)
Constructors
- Update({required int updateId, Message? message, Message? editedMessage, Message? channelPost, Message? editedChannelPost, InlineQuery? inlineQuery, ChosenInlineResult? chosenInlineResult, CallbackQuery? callbackQuery, ShippingQuery? shippingQuery, PreCheckoutQuery? preCheckoutQuery, Poll? poll, PollAnswer? pollAnswer, ChatMemberUpdated? myChatMember, ChatMemberUpdated? chatMember, ChatJoinRequest? chatJoinRequest})
-
Update.fromJson(Map<
String, dynamic> json) -
factory
Properties
- callbackQuery ↔ CallbackQuery?
-
getter/setter pair
- channelPost ↔ Message?
-
getter/setter pair
- chatJoinRequest ↔ ChatJoinRequest?
-
getter/setter pair
- chatMember ↔ ChatMemberUpdated?
-
getter/setter pair
- chosenInlineResult ↔ ChosenInlineResult?
-
getter/setter pair
- editedChannelPost ↔ Message?
-
getter/setter pair
- editedMessage ↔ Message?
-
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- inlineQuery ↔ InlineQuery?
-
getter/setter pair
- message ↔ Message?
-
getter/setter pair
- myChatMember ↔ ChatMemberUpdated?
-
getter/setter pair
- poll ↔ Poll?
-
getter/setter pair
- pollAnswer ↔ PollAnswer?
-
getter/setter pair
- preCheckoutQuery ↔ PreCheckoutQuery?
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- shippingQuery ↔ ShippingQuery?
-
getter/setter pair
- updateId ↔ int
-
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited