Raw.MessageActionSetMessagesTTL
The time-to-live of messages in this chat was changed.
messageActionSetMessagesTTL#3c134d7b flags:# period:int auto_setting_from:flags.0?long = MessageAction;
export namespace Raw {
export class MessageActionSetMessagesTTL {
constructor(params: { period: number; autoSettingFrom?: bigint }) {}
}
}
🚫
This is a types constructor, you can’t use it as method when call invoke.
Layer: 185
Constructor ID: 0x3c134d7b
Property
period
: numberNew time-to-live of all messages sent in this chat; if 0, autodeletion was disabled.
autoSettingFrom
: bigint or undefinedIf set, the chat ttl setting was set not due to a manual change by one of participants, but automatically because one of the participants has the default ttl settings enabled. for example, when a user writes to us for the first time and we have set a default messages ttl of 1 week, this service message (with autoSettingFrom=ourUserid) will be emitted before our first message.