Raw.Dialog

Raw.Dialog

Chat

dialog#d58a08c6 flags:# pinned:flags.2?true unread_mark:flags.3?true view_forum_as_messages:flags.6?true peer:Peer top_message:int read_inbox_max_id:int read_outbox_max_id:int unread_count:int unread_mentions_count:int unread_reactions_count:int notify_settings:PeerNotifySettings pts:flags.0?int draft:flags.1?DraftMessage folder_id:flags.4?int ttl_period:flags.5?int = Dialog;
export namespace Raw {
  export class Dialog {
    constructor(params: {
      pinned?: boolean;
      unreadMark?: boolean;
      viewForumAsMessages?: boolean;
      peer: Raw.TypePeer;
      topMessage: number;
      readInboxMaxId: number;
      readOutboxMaxId: number;
      unreadCount: number;
      unreadMentionsCount: number;
      unreadReactionsCount: number;
      notifySettings: Raw.TypePeerNotifySettings;
      pts?: number;
      draft?: Raw.TypeDraftMessage;
      folderId?: number;
      ttlPeriod?: number;
    }) {}
  }
}
🚫

This is a types constructor, you can’t use it as method when call invoke.

Layer: 185
Constructor ID: 0xd58a08c6

Property

  • pinned : boolean or undefined

    Is the dialog pinned

  • unreadMark : boolean or undefined

    Whether the chat was manually marked as unread

  • viewForumAsMessages : boolean or undefined

    Users may also choose to display messages from all topics of a forum as if they were sent to a normal group, using a “view as messages” setting in the local client. this setting only affects the current account, and is synced to other logged in sessions using the channels.toggleviewforumasmessages method; invoking this method will update the value of this flag.

  • peer : Raw.TypePeer

    The chat

  • topMessage : number

    The latest message id

  • readInboxMaxId : number

    Position up to which all incoming messages are read.

  • readOutboxMaxId : number

    Position up to which all outgoing messages are read.

  • unreadCount : number

    Number of unread messages

  • unreadMentionsCount : number

    Number of unread mentions

  • unreadReactionsCount : number

    Number of unread reactions to messages you sent

  • notifySettings : Raw.TypePeerNotifySettings

    Notification settings

  • pts : number or undefined

    Pts

  • draft : Raw.TypeDraftMessage or undefined

    Message draft

  • folderId : number or undefined

    Peer folder id, for more info click here

  • ttlPeriod : number or undefined

    Time-to-live of all messages sent in this dialog