ProcessCommunityAddChatRequest class

Handles a pending request to add a chat to a community; requires can_edit_chat_list administrator right in the community Returns Ok

Inheritance
Available extensions
Annotations
  • @immutable

Constructors

ProcessCommunityAddChatRequest({required int communityId, required int chatId, required bool approve})
const

Properties

approve → bool
approve Pass true to approve the request and add the chat to the community; pass false to decline it. If the community already has the maximum number of chats, then approval fails with the error "COMMUNITY_PEERS_TOO_MUCH"
final
chatId → int
chatId Identifier of the chat from the request
final
communityId → int
communityId Identifier of the community
final
hashCode → int
The hash code for this object.
no setteroverride
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

copyWith({int? communityId, int? chatId, bool? approve}) → ProcessCommunityAddChatRequest

Available on ProcessCommunityAddChatRequest, provided by the ProcessCommunityAddChatRequestExtensions extension

getConstructor() → String
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent 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.
override

Constants

constructor → const String