Raw.messages.SetHistoryTTL

Raw.messages.SetHistoryTTL

Set maximum time-to-live of all messages in the specified chat

messages.setHistoryTTL#b80e5fe4 peer:InputPeer period:int = Updates;
export namespace Raw {
  export namespace messages {
    export class SetHistoryTTL {
      constructor(params: { peer: Raw.TypeInputPeer; period: number }) {}
    }
  }
}

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

Layer: 185
Constructor ID: 0xb80e5fe4

Property

  • peer : Raw.TypeInputPeer

    The dialog

  • period : number

    Automatically delete all messages sent in the chat after this many seconds

Results

Raw.TypeUpdates