ChatMember class

This object contains information about one member of a chat.

https://core.telegram.org/bots/api#chatmember

Annotations
  • @JsonSerializable.new(includeIfNull: false)

Constructors

ChatMember({User? user, String? status, String? customTitle, DateTime? untilDate, bool? canBeEdited, bool? canPostMessages, bool? canEditMessages, bool? canDeleteMessages, bool? canRestrictMembers, bool? canPromoteMembers, bool? canChangeInfo, bool? canInviteUsers, bool? canPinMessages, bool? isMember, bool? canSendMessages, bool? canSendMediaMessages, bool? canSendPolls, bool? canSendOtherMessages, bool? canAddWebPagePreviews})
ChatMember.fromJson(Map<String, dynamic> json)
factory

Properties

canAddWebPagePreviews ↔ bool?
Optional. Restricted only. True, if the user is allowed to add web page previews to their messages.
getter/setter pair
canBeEdited ↔ bool?
Optional. Administrators only. True, if the bot is allowed to edit administrator privileges of that user.
getter/setter pair
canChangeInfo ↔ bool?
Optional. Administrators and restricted only. True, if the user is allowed to change the chat title, photo and other settings.
getter/setter pair
canDeleteMessages ↔ bool?
Optional. Administrators only. True, if the administrator can delete messages of other users.
getter/setter pair
canEditMessages ↔ bool?
Optional. Administrators only. True, if the administrator can edit messages of other users and can pin messages; channels only.
getter/setter pair
canInviteUsers ↔ bool?
Optional. Administrators and restricted only. True, if the user is allowed to invite new users to the chat.
getter/setter pair
canPinMessages ↔ bool?
Optional. Administrators and restricted only. True, if the user is allowed to pin messages; groups and supergroups only.
getter/setter pair
canPostMessages ↔ bool?
Optional. Administrators only. True, if the administrator can post in the channel; channels only.
getter/setter pair
canPromoteMembers ↔ bool?
Optional. Administrators only. True, if the administrator can add new administrators with a subset of his own privileges or demote administrators that he has promoted, directly or indirectly (promoted by administrators that were appointed by the user).
getter/setter pair
canRestrictMembers ↔ bool?
Optional. Administrators only. True, if the administrator can restrict, ban or unban chat members.
getter/setter pair
canSendMediaMessages ↔ bool?
Optional. Restricted only. True, if the user is allowed to send audios, documents, photos, videos, video notes and voice notes.
getter/setter pair
canSendMessages ↔ bool?
Optional. Restricted only. True, if the user is allowed to send text messages, contacts, locations and venues.
getter/setter pair
canSendOtherMessages ↔ bool?
Optional. Restricted only. True, if the user is allowed to send animations, games, stickers and use inline bots.
getter/setter pair
canSendPolls ↔ bool?
Optional. Restricted only. True, if the user is allowed to send polls.
getter/setter pair
customTitle ↔ String?
Optional. Owner and administrators only. Custom title for this user.
getter/setter pair
hashCode → int
The hash code for this object.
no setterinherited
isMember ↔ bool?
Optional. Restricted only. True, if the user is a member of the chat at the moment of the request.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
status ↔ String?
The member's status in the chat. Can be “creator”, “administrator”, “member”, “restricted”, “left” or “kicked”.
getter/setter pair
untilDate ↔ DateTime?
Optional. Restricted and kicked only. Date when restrictions will be lifted for this user; unix time.
getter/setter pair
user ↔ User?
Information about the user.
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