Raw.messages.UpdatePinnedMessage

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 undefined

    Pin the message silently, without triggering a notification

  • unpin : boolean or undefined

    Whether the message should unpinned or pinned

  • pmOneside : boolean or undefined

    Whether the message should only be pinned on the local side of a one-to-one chat

  • peer : Raw.TypeInputPeer

    The peer where to pin the message

  • id : number

    The message to pin or unpin

Results

Raw.TypeUpdates

Bots can use