• Create a legacy group chat

    If you want to create a supergroup, use createSupergroup instead.

    Parameters

    • client: ITelegramClient
    • params: { title: string; ttlPeriod?: number; users: MaybeArray<InputPeerLike> }
      • title: string

        Group title

      • OptionalttlPeriod?: number

        TTL period (in seconds) for the newly created chat

        0 (i.e. messages don't expire)
        
      • users: MaybeArray<InputPeerLike>

        User(s) to be invited in the group (ID(s), username(s) or phone number(s)). Due to Telegram limitations, you can't create a legacy group with just yourself.

    Returns Promise<CreateGroupResult>