messages.CreateChat#

class pyrogram.raw.functions.messages.CreateChat#

Creates a new chat.

Details:
  • Layer: 158

  • ID: 34A818

Parameters:
  • users (List of InputUser) – List of user IDs to be invited.

  • title (str) – Chat name.

  • ttl_period (int 32-bit, optional) – Time-to-live of all messages that will be sent in the chat: once message.date+message.ttl_period === time(), the message will be deleted on the server, and must be deleted locally as well. You can use messages.setDefaultHistoryTTL to edit this value later.

Returns:

Updates