BILLmanager 6
en En
es Es

Managing tickets in Telegram

You can configure Telegram integration so that customers can contact support with requests via the bot you created.

Configuration on the Telegram side

Create a bot in Telegram. To do this:

  1. Go to the link https://t.me/BotFather or search for it in Telegram — @BotFather.
  2. Start the bot using the /start command.
  3. Create your bot using the /newbot command.
  4. Enter the bot name. For example, Notify Me.
  5. Enter a unique username for the bot. It must end with bot. For example, notifyme876bot.
  6. Save the bot name and the token value from the response.
  7. To allow the bot to send messages to a Telegram group:

    1. Add the bot to the group.
    2. Enter any command in the group chat. For example, /start.
  8. To allow the bot to send messages to a Telegram user, the user must open a dialog with the bot and click Start.

    Bot creation example

Configuration on the BILLmanager side

On the provider side

To install the module, go to IntegrationModules → select TelegramInstall button.

To configure the module, go to SupportTelegram → click Add:

  1. Select the Provider.
  2. Specify the Bot name in Telegram.
  3. Specify the bot Token.
  4. Specify the Telegram API URL. Leave the field empty if you do not use third-party proxies for Telegram.
  5. In the Webhook URL field, enter an address in the format https://URL_BILLmanager/mancgi/telegram_support_webhook . Telegram will send webhooks to this address confirming that the customer and the bot are linked. You can leave the field empty. In this case, the address of the server with BILLmanager will be used.
  6. Select the Use proxy option if you need to send requests via a proxy server. When the option is enabled, specify:
    • Proxy URL — the address of the proxy server. For example, socks5://host:1080, socks5h://host:1080, or http://host:8080;
    • Username — the username for authorization on the proxy server;
    • Password — the password for authorization on the proxy server.
  7. Click Ok.

The added Telegram bots and their status are displayed in the table.

You can perform the following actions with the bots:

  • edit;
  • delete;
  • enable or disable.

On the customer side

To work with Telegram, the customer specifies the login of their Telegram account (without @) in the User settings. For more information, see the article Notifications.

The settings display the enabled bots for receiving notifications and working with support.

Working with tickets

The following commands are used to work with the bot (the argument is passed via _, /command_value, for example /ticket_159):

  • /start — a list of user tickets with the ability to select a ticket;
  • /ticket_{ticket number} — ticket information, including the last message with attached files. The following actions are available:
    • Add a reply. The maximum message length is 255 characters and no more than 5 files;
    • Archive. The button appears for tickets in the "Waiting for customer response" status.
  • /createticket — creating a new ticket. When creating a new ticket:
    1. The customer selects a provider if there are multiple providers and the customer uses services from different providers.
    2. The customer selects the department to which the request will be directed.
    3. The system checks whether paid support for prepaid requests is configured for them. If it is configured, it checks whether the customer has prepaid requests. If not, it displays a message that it is impossible to create a request.
    4. The customer selects the service for which the problem occurred.
    5. The customer writes the request subject.
    6. The customer writes a message about their problem. The customer can attach up to 5 files.