ChatPermissions class

Implemented types

Constructors

ChatPermissions({bool canSendMessages, bool canSendMediaMessages, bool canSendPolls, bool canSendOtherMessages, bool canAddWebPagePreviews, bool canChangeInfo, bool canInviteUsers, bool canPinMessages})
Describes actions that a user is allowed to take in a chat. canSendMessages True, if the user can send text messages, contacts, locations, and venues. canSendMediaMessages True, if the user can send audio files, documents, photos, videos, video notes, and voice notes. Implies can_send_messages permissions. canSendPolls True, if the user can send polls. Implies can_send_messages permissions. canSendOtherMessages True, if the user can send animations, games, and stickers and use inline bots. Implies can_send_messages permissions. canAddWebPagePreviews True, if the user may add a web page preview to their messages. Implies can_send_messages permissions. canChangeInfo True, if the user can change the chat title, photo, and other settings. canInviteUsers True, if the user can invite new users to the chat. canPinMessages True, if the user can pin messages
ChatPermissions.fromJson(Map<String, dynamic> json)
Parse from a json

Properties

canAddWebPagePreviews bool
read / write
canChangeInfo bool
read / write
canInviteUsers bool
read / write
canPinMessages bool
read / write
canSendMediaMessages bool
read / write
canSendMessages bool
read / write
canSendOtherMessages bool
read / write
canSendPolls bool
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

getConstructor() String
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toJson() Map<String, dynamic>
override
toString() String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) bool
The equality operator. [...]
inherited

Constants

CONSTRUCTOR → const String
"chatPermissions"