ChatPermissions class

Inheritance

Constructors

ChatPermissions({required bool canSendBasicMessages, required bool canSendAudios, required bool canSendDocuments, required bool canSendPhotos, required bool canSendVideos, required bool canSendVideoNotes, required bool canSendVoiceNotes, required bool canSendPolls, required bool canSendOtherMessages, required bool canAddWebPagePreviews, required bool canChangeInfo, required bool canInviteUsers, required bool canPinMessages, required bool canManageTopics})
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
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
canManageTopics bool
canManageTopics True, if the user can manage topics
final
canPinMessages bool
canPinMessages True, if the user can pin messages
final
canSendAudios bool
canSendAudios True, if the user can send music files
final
canSendBasicMessages bool
canSendBasicMessages True, if the user can send text messages, contacts, invoices, locations, and venues
final
canSendDocuments bool
canSendDocuments True, if the user can send documents
final
canSendOtherMessages bool
canSendOtherMessages True, if the user can send animations, games, stickers, and dice and use inline bots
final
canSendPhotos bool
canSendPhotos True, if the user can send audio photos
final
canSendPolls bool
canSendPolls True, if the user can send polls
final
canSendVideoNotes bool
canSendVideoNotes True, if the user can send video notes
final
canSendVideos bool
canSendVideos True, if the user can send audio videos
final
canSendVoiceNotes bool
canSendVoiceNotes True, if the user can send voice notes
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? canSendBasicMessages, 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}) 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