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 undefinedIs the dialog pinned
unreadMark
: boolean or undefinedWhether the chat was manually marked as unread
viewForumAsMessages
: boolean or undefinedUsers 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.TypePeerThe chat
topMessage
: numberThe latest message id
readInboxMaxId
: numberPosition up to which all incoming messages are read.
readOutboxMaxId
: numberPosition up to which all outgoing messages are read.
unreadCount
: numberNumber of unread messages
unreadMentionsCount
: numberNumber of unread mentions
unreadReactionsCount
: numberNumber of unread reactions to messages you sent
notifySettings
: Raw.TypePeerNotifySettingsNotification settings
pts
: number or undefinedPts
draft
: Raw.TypeDraftMessage or undefinedMessage draft
folderId
: number or undefinedPeer folder id, for more info click here
ttlPeriod
: number or undefinedTime-to-live of all messages sent in this dialog