ChatMemberRestricted class

Represents a chat member that is under certain restrictions in the chat. Supergroups only.

that is under certain restrictions in the chat. Supergroups only.

Implemented types
Annotations
  • @JsonSerializable(fieldRename: FieldRename.snake)

Constructors

ChatMemberRestricted({required String status, required User user, bool isMember = false, bool canChangeInfo = false, bool canInviteUsers = false, bool canPinMessages = false, bool canManageTopics = false, bool canSendMessages = false, bool? canSendAudios = false, bool? canSendDocuments = false, bool? canSendPhotos = false, bool? canSendVideos = false, bool? canSendVideoNotes = false, bool? canSendVoiceNotes = false, bool canSendPolls = false, bool canSendOtherMessages = false, bool canAddWebPagePreviews = false, required int untilDate})
ChatMemberRestricted.fromJson(Map<String, dynamic> json)
factory

Properties

canAddWebPagePreviews bool
getter/setter pair
canChangeInfo bool
getter/setter pair
canInviteUsers bool
getter/setter pair
canManageTopics bool
getter/setter pair
canPinMessages bool
getter/setter pair
canSendAudios bool?
getter/setter pair
canSendDocuments bool?
getter/setter pair
canSendMessages bool
getter/setter pair
canSendOtherMessages bool
getter/setter pair
canSendPhotos bool?
getter/setter pair
canSendPolls bool
getter/setter pair
canSendVideoNotes bool?
getter/setter pair
canSendVideos bool?
getter/setter pair
canSendVoiceNotes bool?
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
isMember bool
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
status String
getter/setter pairoverride
untilDate int
getter/setter pair
untilDate_ DateTime
getter/setter pair
user User
getter/setter pairoverride

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
override
toString() String
A string representation of this object.
inherited

Operators

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