ChatPermissions class
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 setter inherited
callback sign
no setter inherited
hashCode
→ int
The hash code for this object.
no setter inherited
runtimeType
→ Type
A representation of the runtime type of the object.
no setter inherited