Link Search Menu Expand Document

Constructor: monoForumDialog

Back to constructors index

Represents a monoforum topic ».

Attributes:

NameTypeRequiredDescription
unread_markBoolOptionalWhether this topic has a manually set (with messages.markDialogUnread) unread mark.
nopaid_messages_exceptionBoolOptionalIf set, an admin has exempted this peer from payment to send messages using account.toggleNoPaidMessagesException.
peerlongYesThe peer associated to the topic, AKA the topic ID.
top_messageintYesThe latest message ID
read_inbox_max_idintYesPosition up to which all incoming messages are read.
read_outbox_max_idintYesPosition up to which all outgoing messages are read.
unread_countintYesNumber of unread messages.
unread_reactions_countintYesNumber of unread reactions.
draftDraftMessageOptionalA pending message draft.

Type: SavedDialog

Example:

$monoForumDialog = ['_' => 'monoForumDialog', 'unread_mark' => Bool, 'nopaid_messages_exception' => Bool, 'peer' => long, 'top_message' => int, 'read_inbox_max_id' => int, 'read_outbox_max_id' => int, 'unread_count' => int, 'unread_reactions_count' => int, 'draft' => DraftMessage];