Chat & Dialog

Primary builder:

Types: Chat & Dialog

Chat item

Primary builder:

  • backend/tg_client/dialogs/domain/channel.py
  • backend/tg_client/dialogs/domain/channel_metadata_components.py

Used by:

  • get_chats
  • get_recently_opened_chats
  • some chat-setting flows that return updated items

Shape summary:

  • chat
  • id, title, username
  • type.kind, type.raw, type.is_channel, type.is_forum
  • avatar
  • counters
  • settings
  • positions
  • membership
  • message (last message block)
  • preview
  • topic (if forum context exists)

Dialog stream

open_dialog is not a single result object. It is a multi-event stream that may contain:

  • dialog_access
  • pinned_message
  • forum_topics
  • message
  • dialog_empty
  • pagination_setup
  • dialog_end
  • dialog_error

Chat profile

Primary builder:

  • backend/tg_client/dialogs/domain/chat_profile.py

Result contains:

  • chat
  • supergroup / basic_group
  • photo
  • usernames
  • notification_settings
  • available_reactions
  • member_status
  • sender metadata when available

Folder and chat-list mutation results

Folder/list mutation commands mostly return service-built objects or raw TDLib-like ok payloads enriched with identifiers such as:

  • chat_folder_id
  • chat_id
  • items
  • items_count
  • folder/shareable link metadata

For exact payload families see:

  • chat_list_normalizer.py
  • chat_settings_normalizer.py
  • chat_item_normalizer.py