ChatPermissions class

Inheritance

Constructors

ChatPermissions({required bool canSendMessages, required bool canSendMediaMessages, required bool canSendPolls, required bool canSendOtherMessages, required bool canAddWebPagePreviews, required bool canChangeInfo, required bool canInviteUsers, required bool canPinMessages})
Describes actions that a user is allowed to take in a chat
const
ChatPermissions.fromJson(Map<String, dynamic> json)
Parse from a json
factory

Properties

canAddWebPagePreviews bool
canAddWebPagePreviews True, if the user may add a web page preview to their messages. Implies can_send_messages permissions
final
canChangeInfo bool
canChangeInfo True, if the user can change the chat title, photo, and other settings
final
canInviteUsers bool
canInviteUsers True, if the user can invite new users to the chat
final
canPinMessages bool
canPinMessages True, if the user can pin messages
final
canSendMediaMessages bool
canSendMediaMessages True, if the user can send audio files, documents, photos, videos, video notes, and voice notes. Implies can_send_messages permissions
final
canSendMessages bool
canSendMessages True, if the user can send text messages, contacts, locations, and venues
final
canSendOtherMessages bool
canSendOtherMessages True, if the user can send animations, games, stickers, and dice and use inline bots. Implies can_send_messages permissions
final
canSendPolls bool
canSendPolls True, if the user can send polls. Implies can_send_messages permissions
final
clientId int?
client identifier
no setterinherited
extra → dynamic
callback sign
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

copyWith({bool? canSendMessages, bool? canSendMediaMessages, bool? canSendPolls, bool? canSendOtherMessages, bool? canAddWebPagePreviews, bool? canChangeInfo, bool? canInviteUsers, bool? canPinMessages}) ChatPermissions
getConstructor() String
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson([dynamic extra]) 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