ChatPermissions class

Inheritance

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
ChatPermissions.fromJson(Map<String, dynamic> json)
Parse from a json

Properties

canAddWebPagePreviews bool
canAddWebPagePreviews True, if the user may add a web page preview to their messages. Implies can_send_messages permissions
read / write
canChangeInfo bool
canChangeInfo True, if the user can change the chat title, photo, and other settings
read / write
canInviteUsers bool
canInviteUsers True, if the user can invite new users to the chat
read / write
canPinMessages bool
canPinMessages True, if the user can pin messages
read / write
canSendMediaMessages bool
canSendMediaMessages True, if the user can send audio files, documents, photos, videos, video notes, and voice notes. Implies can_send_messages permissions
read / write
canSendMessages bool
canSendMessages True, if the user can send text messages, contacts, locations, and venues
read / write
canSendOtherMessages bool
canSendOtherMessages True, if the user can send animations, games, stickers, and dice and use inline bots. Implies can_send_messages permissions
read / write
canSendPolls bool
canSendPolls True, if the user can send polls. Implies can_send_messages permissions
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
A string representation of this object. [...]
inherited

Operators

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

Constants

CONSTRUCTOR → const String
'chatPermissions'