CreateNewSupergroupChat class

Creates a new supergroup or channel and sends a corresponding messageSupergroupChatCreate. Returns the newly created chat.

Returns Chat.

Inheritance
Available Extensions

Constructors

CreateNewSupergroupChat({required String title, required bool is_forum, required bool is_channel, required String description, ChatLocation? location, required int message_auto_delete_time, required bool for_import, int? extra, int? clientId})
Creates a new supergroup or channel and sends a corresponding messageSupergroupChatCreate. Returns the newly created chat

Properties

clientId int?
TDLib client instance identifier, for which the response was received.
read / writeoverride
description String
Chat description; 0-255 characters.
read / write
extra int?
Request identifier. Must be non-zero.
read / writeoverride
for_import bool
Pass true to create a supergroup for importing messages using importMessages.
read / write
hashCode int
The hash code for this object.
read-onlyinherited
is_channel bool
Pass true to create a channel chat; ignored if a forum is created.
read / write
is_forum bool
Pass true to create a forum supergroup chat.
read / write
location ChatLocation?
Chat location if a location-based supergroup is being created; pass null to create an ordinary supergroup chat.
read / write
message_auto_delete_time 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.
read / write
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
title String
Title of the new chat; 1-128 characters.
read / write

Methods

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

Operators

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

Static Methods

fromMap(Map<String, dynamic>? _map) CreateNewSupergroupChat?
Construct from Map.
override

Constants

CONSTRUCTOR → const String
@type
"createNewSupergroupChat"