ChatPermissions class

Describes actions that a non-administrator user is allowed to take in a chat.

https://core.telegram.org/bots/api#chatpermissions

Annotations
  • @JsonSerializable.new(includeIfNull: false)

Constructors

ChatPermissions({bool? canSendMessages, bool? canSendMediaMessages, bool? canSendPolls, bool? canSendOtherMessages, bool? canAddWebPagePreviews, bool? canChangeInfo, bool? canInviteUsers, bool? canPinMessages})
ChatPermissions.fromJson(Map<String, dynamic> json)
factory

Properties

canAddWebPagePreviews ↔ bool?
Optional. True, if the user is allowed to add web page previews to their messages, implies can_send_media_messages.
getter/setter pair
canChangeInfo ↔ bool?
Optional. True, if the user is allowed to change the chat title, photo and other settings. Ignored in public supergroups.
getter/setter pair
canInviteUsers ↔ bool?
Optional. True, if the user is allowed to invite new users to the chat.
getter/setter pair
canPinMessages ↔ bool?
Optional. True, if the user is allowed to pin messages. Ignored in public supergroups
getter/setter pair
canSendMediaMessages ↔ bool?
Optional. True, if the user is allowed to send audios, documents, photos, videos, video notes and voice notes, implies can_send_messages,
getter/setter pair
canSendMessages ↔ bool?
Optional. True, if the user is allowed to send text messages, contacts, locations and venues.
getter/setter pair
canSendOtherMessages ↔ bool?
Optional. True, if the user is allowed to send animations, games, stickers and use inline bots, implies can_send_media_messages.
getter/setter pair
canSendPolls ↔ bool?
Optional. True, if the user is allowed to send polls, implies can_send_messages.
getter/setter pair
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited