ChatMemberRestricted class

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

Implemented types

Constructors

ChatMemberRestricted({required User user, required bool isMember, required bool canChangeInfo, required bool canInviteUsers, required bool canPinMessages, required bool canSendMessages, required bool canSendPolls, required bool canSendOtherMessages, required bool canAddWebPagePreviews, required int untilDate, required bool canManageTopics, required bool canSendAudios, required bool canSendDocuments, required bool canSendPhotos, required bool canSendVideos, required bool canSendVideoNotes, required bool canSendVoiceNotes})
Creates a new ChatMemberRestricted object.
const
ChatMemberRestricted.fromJson(Map<String, dynamic> json)
Creates a ChatMemberRestricted object from a Map of JSON data.
factory

Properties

canAddWebPagePreviews bool
True, if the user is allowed to add web page previews to their messages, implies can_send_media_messages
final
canChangeInfo bool
True, if the user is allowed to change the chat title, photo and other settings
final
canInviteUsers bool
True, if the user is allowed to invite new users to the chat
final
canManageTopics bool
True, if the user is allowed to create forum topics
final
canPinMessages bool
True, if the user is allowed to pin messages; groups and supergroups only
final
canSendAudios bool
True, if the user is allowed to send audios
final
canSendDocuments bool
True, if the user is allowed to send documents
final
canSendMessages bool
True, if the user is allowed to send text messages, contacts, locations and venues
final
canSendOtherMessages bool
True, if the user is allowed to send animations, games, stickers and use inline bots, implies can_send_media_messages
final
canSendPhotos bool
True, if the user is allowed to send photos
final
canSendPolls bool
True, if the user is allowed to send polls, implies can_send_messages
final
canSendVideoNotes bool
True, if the user is allowed to send video notes
final
canSendVideos bool
True, if the user is allowed to send videos
final
canSendVoiceNotes bool
True, if the user is allowed to send voice notes
final
from User
Information about the user
no setteroverride
hashCode int
The hash code for this object.
no setterinherited
isForever bool
True if the restriction is forever
no setter
isMember bool
True, if the user is a member of the chat at the moment of the request
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
status ChatMemberStatus
The member's status in the chat, always “creator”
final
untilDate int
Date when restrictions will be lifted for this user; unix time. If 0, then the user is restricted forever
final
untilDateTime DateTime?
Date when restrictions will be lifted for this user; unix time. If 0, then the user is restricted forever
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 ChatMemberRestricted 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