Skip to content

Customer Database Export with /export Command

The /export command allows you to export the list of users and chats with whom there was correspondence through the Hotline system, as a CSV file with detailed information about each topic.

How It Works

The command only works in the General topic and creates a CSV file with all important information about topics: user identifiers, dates, statuses, labels and other data.

Main Features

  • Export entire customer database
  • Filtering by labels
  • Detailed information about each topic
  • CSV format for further analysis

Export Format

The CSV file contains the following fields:

Field Description
user_id Telegram user identifier (for chats contains special identifier)
last_date Date of last message in topic
status Current dialog status (user_answered, support_answered, closed)
title Topic name
frontend_type Topic type (private, group, channel)
topic_link Link to topic in backend group

CSV Format

CSV file can be opened in Excel, Google Sheets or imported into other CRM systems for further processing.

Calling the Command

Export All Topics

/export all

Exports complete list of all topics in backend group with all their properties.

Send /export all in General topic and you will receive CSV file with entire customer database.

Export by Label

/export MARK_NAME

Exports only topics with specified label.

Quick Help

Send command /export without parameters in General topic to get help in English.

Important Notes

Access rights

By default, command is only available to connections administrators. Access can be extended via EXTENSIONS_ALLOWED parameter.

Confidentiality

CSV file contains Telegram user identifiers. Follow confidentiality rules when working with exported data. It is recommended to immediately download export files and delete them from chat after completing work.

Regular export

Make regular database exports to create backups.