CreateNewSupergroupChat class
Creates a new supergroup or channel and sends a corresponding messageSupergroupChatCreate. Returns the newly created chat
- Inheritance
-
- Object
- Td
- TdFunction
- CreateNewSupergroupChat
Constructors
- CreateNewSupergroupChat({String? extra, int? client_id, string? title, Bool? is_channel, string? description, ChatLocation? location, int32? message_auto_delete_time, Bool? for_import})
-
CreateNewSupergroupChat.fromMap(Map<
String, dynamic> map)
Properties
- client_id ↔ int?
-
TDLib client id; maps to the field @client_id.
getter/setter pairinherited
- description ↔ string?
-
getter/setter pair
- extra ↔ String?
-
Matches requests with responses; maps to the field @extra.
getter/setter pairinherited
- for_import ↔ Bool?
-
Pass true to create a supergroup for importing messages using importMessage
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- is_channel ↔ Bool?
-
Pass true to create a channel chat
getter/setter pair
- location ↔ ChatLocation?
-
Chat location if a location-based supergroup is being created; pass null to create an ordinary supergroup chat
getter/setter pair
- message_auto_delete_time ↔ int32?
-
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
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- tdReturnType → String
-
The return type as String for this function.
Currently not used.
no setteroverride
- tdType → String
-
JSON object type; maps to the field @type.
no setteroverride
- title ↔ string?
-
Title of the new chat; 1-128 characters
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
{dynamic skipNulls = true}) → String -
Serialize a Td instance to a JSON string.
If
skipNullsistruethe fields with null values are not serialized.inherited -
toMap(
{dynamic skipNulls = true}) → Map< String, dynamic> -
Create a Map from a Td instance.
override
-
toString(
{dynamic skipNulls = false}) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited