Raw.messages.UpdatePinnedMessage
Pin a message
messages.updatePinnedMessage#d2aaf7ec flags:# silent:flags.0?true unpin:flags.1?true pm_oneside:flags.2?true peer:InputPeer id:int = Updates;
export namespace Raw {
export namespace messages {
export class UpdatePinnedMessage {
constructor(params: {
silent?: boolean;
unpin?: boolean;
pmOneside?: boolean;
peer: Raw.TypeInputPeer;
id: number;
}) {}
}
}
}
This is a function constructor, you can use it as method when call invoke
Layer: 185
Constructor ID: 0xd2aaf7ec
Property
silent
: boolean or undefinedPin the message silently, without triggering a notification
unpin
: boolean or undefinedWhether the message should unpinned or pinned
pmOneside
: boolean or undefinedWhether the message should only be pinned on the local side of a one-to-one chat
peer
: Raw.TypeInputPeerThe peer where to pin the message
id
: numberThe message to pin or unpin