lib/tdlib/client_methods.rb
def create_new_supergroup_chat(title:, is_channel:, description:, location:, for_import:)
    broadcast('@type'       => 'createNewSupergroupChat',
              'title'       => title,
              'is_channel'  => is_channel,
              'description' => description,
              'location'    => location,
              'for_import'  => for_import)
  end
# Creates a new supergroup or channel and sends a corresponding messageSupergroupChatCreate.
# Returns the newly created chat.
#
# @param title [TD::Types::String] Title of the new chat; 1-128 characters.
# @param is_channel [Boolean] True, if a channel chat needs to be created.
# @param description [TD::Types::String] Chat description; 0-255 characters.
# @param location [TD::Types::ChatLocation] Chat location if a location-based supergroup is being created; pass null
#   to create an ordinary supergroup chat.
# @param for_import [Boolean] True, if the supergroup is created for importing messages using importMessage.
# @return [TD::Types::Chat]
Creates a new supergroup or channel and sends a corresponding messageSupergroupChatCreate.
Returns the newly created chat.
Creates a new supergroup or channel and sends a corresponding messageSupergroupChatCreate . Returns the newly created chat .
def create_new_supergroup_chat(title:, is_channel:, description:, location:, for_import:)
    broadcast('@type'       => 'createNewSupergroupChat',
              'title'       => title,
              'is_channel'  => is_channel,
              'description' => description,
              'location'    => location,
              'for_import'  => for_import)
  end
def create_new_supergroup_chat ( title : , is_channel : , description : , location : , for_import : ) broadcast ( '@type' => 'createNewSupergroupChat' , 'title' => title , 'is_channel' => is_channel , 'description' => description , 'location' => location , 'for_import' => for_import ) end
Creates a new supergroup or channel and sends a corresponding messageSupergroupChatCreate.
Creates a new supergroup or channel and sends a corresponding messageSupergroupChatCreate .
None
TD::Types::Chat
title
Title of the new chat; 1-128 characters.
Title of the new chat ; 1 - 128 characters .
is_channel
True, if a channel chat needs to be created.
True if a channel chat needs to be created .
description
Chat description; 0-255 characters.
Chat description ; 0 - 255 characters .
location
Chat location if a location-based supergroup is being created; pass null to create an ordinary supergroup chat.
Chat location if a location - based supergroup is being created ; pass null to create an ordinary supergroup chat .
for_import
True, if the supergroup is created for importing messages using importMessage.
True if the supergroup is created for importing messages using importMessage .