Cài đặt và cấu hình thông báo Telegram cho WHMCS

Đánh giá post

Creating a new bot

How do I create a bot? Do not forget to set domain with /setdomain command.

Creating a new bot

Main Addon (Client Notifications)

Install and activate

Download and unpack telegram-addon.zip, upload content to the WHMCS folder.

Go to Setup > Addon Modules and activate Telegram Addon.

Install and activate

After activation check permissions and save settings.

Important!
Set Encoded File Loading to Attempt to load all files at General Settings – Other.

ioncube

Go to Addons > Telegram Addon and fill the License Key field.

License key

Bot Settings

Fill Bot Username and Token in the Bot Settings tab.

Bot Settings

Notifications

You can send different types of messages to the cleints.

Settings

Client Area:

Линковка
Параметры

Message Templates

Click Edit to start editing the message. You can use Smarty variables and functions.

Templates
Edit template

 

Also you can create custom admin templates. Several HTML tags supported


Admin Notifications

Administrators can link Telegram accounts and use it to receive notifications.

Linking

Module activation

Administrators can receive individual or group notifications.

Go to Setup > Notifications click “Configure” on Notification for Telegram Addon.

Activation
Settings

 

You can add up to 5 Chats/Groups. To find Chat/Group ID open Telegram Web and open group info:

Группа

Right click on Invite to group via link and copy link. Link will be like https://web.telegram.org/#/im?p=g370024601. Numbers is group ID with ‘-‘ sign.


Creating rules

Click Create New Notification Rule for new rule:

Rules

Select Message Template and Recipient.

Đánh giá post