CreateNewSupergroupChat class final
Creates a new supergroup or channel and sends a corresponding messageSupergroupChatCreate. Returns the newly created chat
Returns Chat.
- Inheritance
-
- Object
- TdFunction<
Chat> - CreateNewSupergroupChat
Constructors
- CreateNewSupergroupChat({required String title, required bool isForum, required bool isChannel, required String description, ChatLocation? location, required int messageAutoDeleteTime, required bool forImport})
-
Creates a new supergroup or channel and sends a corresponding messageSupergroupChatCreate. Returns the newly created chat
const
Properties
- canBeCalledSynchronously → bool
-
Whether TDLib documents this request as callable through
td_execute.no setterinherited - description → String
-
Chat description; 0-255 characters
final
- forImport → bool
-
Pass true to create a supergroup for importing messages using importMessages
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isChannel → bool
-
Pass true to create a channel chat; ignored if a forum is created
final
- isForum → bool
-
Pass true to create a forum supergroup chat
final
- location → ChatLocation?
-
Chat location if a location-based supergroup is being created; pass null to create an ordinary supergroup chat
final
- messageAutoDeleteTime → int
-
Message auto-delete time value, in seconds; must be from 0 up to 365 * 86400 and be divisible by 86400. If 0, then messages aren't deleted automatically
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- title → String
-
Title of the new chat; 1-128 characters
final
Methods
-
copyWith(
{String? title, bool? isForum, bool? isChannel, String? description, ChatLocation? location()?, int? messageAutoDeleteTime, bool? forImport}) → CreateNewSupergroupChat -
Returns a copy with the given fields replaced. For a nullable
field pass a function, e.g.
field: () => nullto clear it. -
getConstructor(
) → String -
TDLib function name, e.g.
getMe.override -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
[dynamic extra]) → Map< String, dynamic> -
Converts this request to TDLib JSON, tagged with
extraif given.override -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- CONSTRUCTOR → const String
- TDLib type name.