CreateNewSupergroupChat class
- Inheritance
-
- Object
- TdFunction
- CreateNewSupergroupChat
Constructors
- CreateNewSupergroupChat({required String title, required bool isChannel, required String description, ChatLocation? location, required bool forImport})
-
Creates a new supergroup or channel and sends a corresponding messageSupergroupChatCreate. Returns the newly created chat
const
Properties
- description → String
-
description Chat description; 0-255 characters
final
- forImport → bool
-
forImport True, if the supergroup is created for importing messages using importMessage
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isChannel → bool
-
isChannel True, if a channel chat needs to be created
final
- location → ChatLocation?
-
location Chat location if a location-based supergroup is being created; pass null to create an ordinary supergroup chat
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- title → String
-
title Title of the new chat; 1-128 characters
final
Methods
-
copyWith(
{String? title, bool? isChannel, String? description, ChatLocation? location, bool? forImport}) → CreateNewSupergroupChat -
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