ChatMemberBanned class
Represents a ChatMember that was banned in the chat and can't return to the chat or view chat messages.
- Implemented types
Constructors
- ChatMemberBanned({required User user, required int untilDate})
-
Creates a new ChatMemberBanned object.
const
-
ChatMemberBanned.fromJson(Map<
String, dynamic> json) -
Creates a new ChatMemberBanned object from json.
factory
Properties
- from → User
-
Information about the user
no setteroverride
- hashCode → int
-
The hash code for this object.
no setterinherited
- isForever → bool
-
Returns true if the user is banned forever
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- status → ChatMemberStatus
-
The member's status in the chat, always "kicked"
final
- untilDate → int
-
Date when restrictions will be lifted for this user; unix time. If 0, then the user is banned forever
final
- untilDateTime → DateTime?
-
Returns the untilDate as a DateTime object
no setter
- user → User
-
Information about the user
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Converts a ChatMemberBanned to a Map for JSON encoding.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited