Raw.messages.CreateChat

Raw.messages.CreateChat

Creates a new chat.

messages.createChat#92ceddd4 flags:# users:Vector<InputUser> title:string ttl_period:flags.0?int = messages.InvitedUsers;
export namespace Raw {
  export namespace messages {
    export class CreateChat {
      constructor(params: { users: Array<Raw.TypeInputUser>; title: string; ttlPeriod?: number }) {}
    }
  }
}

This is a function constructor, you can use it as method when call invoke

Layer: 185
Constructor ID: 0x92ceddd4

Property

  • users : Array of Raw.TypeInputUser

    List of user ids to be invited

  • title : string

    Chat name

  • ttlPeriod : number or undefined

    Time-to-live of all messages that will be sent in the chat: once message.date+message.ttlPeriod === 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.

Results

Raw.messages.TypeInvitedUsers