CreateCommunity class
Creates a new community for the given chat. Returns the identifier of the created community Returns CommunityId
- Inheritance
-
- Object
- TdFunction
- CreateCommunity
- Available extensions
- Annotations
-
- @immutable
Constructors
- CreateCommunity({required String name, required int chatId, required bool isChatHidden})
-
const
Properties
- chatId → int
-
chatId Identifier of the chat in the community; only chats with owned
bots and owned basic group, supergroup, and channel chats are allowed;
basic group chats will be automatically upgraded to supergroup chats
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- isChatHidden → bool
-
isChatHidden Pass true if the chat will be visible only to
administrators of the community
final
- name → String
-
name Name of the new community
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
copyWith(
{String? name, int? chatId, bool? isChatHidden}) → CreateCommunity -
Available on CreateCommunity, provided by the CreateCommunityExtensions 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