Working with Telegram chats via Hotline CRM

Monitoring groups and channels, posting in Telegram chats from a connected account or bot
Connected to Hotline bots and accounts can be members of private or public chats of various types: groups, topic groups or channels.
If in the installation bot activate parameters in connection settings @MONITOR_GROUPS@ or @MONITOR_CHANNELS@, then it becomes possible:
  • receive messages from chats in which the bot or account is a member in the corresponding topic on the side of the backend group Hotline
  • leave messages in the appropriate chats on behalf of the connected bot or account through the backend group Hotline
  • filter chats by keywords and activate the forwarding of messages from the chat to the backend group when they appear
Attention: This page contains fragments with automatic translation. If you have difficulty understanding this information, try switching the language to English or Russian and use your trusted system for translating websites.
Examples of solved problems
  • monitoring of all messages in private or public chats by a team of managers on behalf of a connected account or bot
  • replies to chats by a team of managers on behalf of a connected account or bot (if they write to the account in a personal message, then dialogues will be created in the working group Hotline as usual)
  • regular posting of news or announcements on behalf of a connected bot or chat account
  • search for leads in Telegram chats by keywords, monitoring of important mentions (company or product names)
Adding an account or bot to chats
Add connected to Hotilne CRM You can access the desired chat account in several ways:
  • In the usual way, through a standard scenario in the Telegram application, when an account independently joins or is invited to a public or private group.
  • By special command /new, which is entered in the topic General in the Hotline backend group. The command takes as a parameter JOIN_LINK, GROUP_LINK or CHANNEL_LINK (eg /new hotlinetg_news).
If you are using a bot rather than an account, it can only be added to the chat by the administrator.
Forwarding messages from chat to a topic on the backend group side Hotline is maintained only when it has a status other than Closed (yellow or purple).
You can change the status of a chat topic with the usual commands /hold, /wait, /close.
If the option is active @MONITOR_GROUPS@ or @MONITOR_CHANNELS@, then creation and activation of the corresponding topic on the side of the backend group Hotline occurs automatically when a connected account is mentioned in a chat (mention), or when you respond to any of its messages (reply).
Note about topic groups
When forwarding messages from topic groups, each topic is perceived by the system as a separate chat, and accordingly, each topic must be activated separately (by mentioning or replying).
Note about the free version
On the free version of the system, when each topic is activated, a welcome message with copyright will be sent to it by Hotline. To disable it and switch to a paid subscription, please contact Support Service.
Automatic activation of topics by keywords
Topics on the side of the backend group Hotline can be created and activated automatically when keywords from a given set appear in the corresponding chats.
When a topic is activated, all messages from the chat begin to be forward into it, starting with the message with the specified fragment. Forwarded messages show links to the profiles of the message's authors. You can respond to the chat on behalf of a connected account or bot, or write a private message to the author of the message, or passively follow the conversation. To stop forwarding you need to send a command /close.
Keywords are specified as an array of strings in the parameter @GROUP_KEYWORDS@ or @CHANNEL_KEYWORDS@.
Before keywords setting, the corresponding parameters should be activated @MONITOR_GROUPS@ or @MONITOR_CHANNELS@.
Currently, self-configuration of the chat filter through the installation bot allows you to set:
  • a set of words, any of which must appear in a message
  • a set of words, each of which must appear in a message
  • words that should not appear in a message or set of words
Example values ​​for parameters @GROUP_KEYWORDS@ or @CHANNEL_KEYWORDS@:
"word1", "word2", ["word3","word4"], ["word5","~word6"]
The above configuration means that to activate a topic, the message must contain:
string "word1" or "word2"
OR
a phrase with the strings "word3" and "word4"
OR
a phrase with the string "word5" but without "word6"
If necessary, a more flexible configuration is possible via contacting support (regular expressions, exact match).
A common use of this function is to search for leads in Telegram chats using keywords or monitoring company mentions.