CreateNewSupergroupChat class

Inheritance

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

description String
description Chat description; 0-255 characters
final
forImport bool
forImport Pass true to create a supergroup for importing messages using importMessage
final
hashCode int
The hash code for this object.
no setterinherited
isChannel bool
isChannel Pass true to create a channel chat; ignored if a forum is created
final
isForum bool
isForum Pass true to create a forum supergroup chat
final
location ChatLocation?
location Chat location if a location-based supergroup is being created; pass null to create an ordinary supergroup chat
final
messageAutoDeleteTime int
messageAutoDeleteTime 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 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
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