Interface CreateNewSupergroupChat

Creates a new supergroup or channel and sends a corresponding messageSupergroupChatCreate. Returns the newly created chat. Request type for Tdjson#createNewSupergroupChat.

interface CreateNewSupergroupChat {
    @type: "createNewSupergroupChat";
    description: string;
    for_import?: boolean;
    is_channel?: boolean;
    is_forum?: boolean;
    location: ChatLocation;
    message_auto_delete_time: number;
    title: string;
}

Properties

@type: "createNewSupergroupChat"
description: string

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

for_import?: boolean

Pass true to create a supergroup for importing messages using importMessages.

is_channel?: boolean

Pass true to create a channel chat; ignored if a forum is created.

is_forum?: boolean

Pass true to create a forum supergroup chat.

location: ChatLocation

Chat location if a location-based supergroup is being created; pass null to create an ordinary supergroup chat.

message_auto_delete_time: number

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.

title: string

Title of the new chat; 1-128 characters.