ChatPermissions class
Describes actions that a non-administrator user is allowed to take in a chat.
Constructors
- ChatPermissions({bool? canSendMessages, bool? canSendAudios, bool? canSendDocuments, bool? canSendPhotos, bool? canSendVideos, bool? canSendVideoNotes, bool? canSendVoiceNotes, bool? canSendPolls, bool? canSendOtherMessages, bool? canAddWebPagePreviews, bool? canChangeInfo, bool? canInviteUsers, bool? canPinMessages, bool? canManageTopics})
- Basic constructor
Properties
- canAddWebPagePreviews ↔ bool?
-
Optional.
True, if the user is allowed to add web page previews to their messages,
implies can_send_media_messages
getter/setter pair
- canChangeInfo ↔ bool?
-
Optional.
True, if the user is allowed to change the chat title, photo and other
settings. Ignored in public supergroups
getter/setter pair
- canInviteUsers ↔ bool?
-
Optional.
True, if the user is allowed to invite new users to the chat
getter/setter pair
- canManageTopics ↔ bool?
-
Optional.
True, if the user is allowed to create forum topics.
If omitted defaults to the value of can_pin_messages
getter/setter pair
- canPinMessages ↔ bool?
-
Optional.
True, if the user is allowed to pin messages. Ignored in public supergroups
getter/setter pair
- canSendAudios ↔ bool?
-
True, if the user is allowed to send audios
getter/setter pair
- canSendDocuments ↔ bool?
-
True, if the user is allowed to send documents
getter/setter pair
- canSendMessages ↔ bool?
-
Optional.
True, if the user is allowed to send text messages, contacts, locations
and venues
getter/setter pair
- canSendOtherMessages ↔ bool?
-
Optional.
True, if the user is allowed to send animations, games, stickers and use
inline bots, implies can_send_media_messages
getter/setter pair
- canSendPhotos ↔ bool?
-
True, if the user is allowed to send photos
getter/setter pair
- canSendPolls ↔ bool?
-
Optional.
True, if the user is allowed to send polls, implies can_send_messages
getter/setter pair
- canSendVideoNotes ↔ bool?
-
True, if the user is allowed to send video notes
getter/setter pair
- canSendVideos ↔ bool?
-
True, if the user is allowed to send videos
getter/setter pair
- canSendVoiceNotes ↔ bool?
-
True, if the user is allowed to send voice notes
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map - Creates a json from the object
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
fromJson(
Map< String, dynamic> json) → ChatPermissions - Creates a object from a json