pub async fn create_new_supergroup_chat(
title: String,
is_forum: bool,
is_channel: bool,
description: String,
location: Option<ChatLocation>,
message_auto_delete_time: i32,
for_import: bool,
client_id: i32,
) -> Result<Chat, Error>
Expand description
Creates a new supergroup or channel and sends a corresponding messageSupergroupChatCreate. Returns the newly created chat
§Arguments
title
- Title of the new chat; 1-128 charactersis_forum
- Pass true to create a forum supergroup chatis_channel
- Pass true to create a channel chat; ignored if a forum is createddescription
- Chat description; 0-255 characterslocation
- Chat location if a location-based supergroup is being created; pass null to create an ordinary supergroup chatmessage_auto_delete_time
- 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 automaticallyfor_import
- Pass true to create a supergroup for importing messages using importMessagesclient_id
- The client id to send the request to