Telegram

Create a Chatbot in Telegram

Login to Telegram and go to https://telegram.me/botfather

Click the Start button in the web interface or type /start

Click or type /newbot and enter a name

Enter a username for the chatbot, which should end with "bot" (e.g. garthsweatherbot)

Copy the generated access token

XMPlus System Settings -> TG Settings -> TG Token -> Enter your token

After logging in to the server with SSH, access the site path such as: /www/wwwroot/tld.com

Enter the command: php xmplus telegram set

  • Get the chat ID: your robot sends a message /ping

  • Get the group chat ID: Create a TG group, add a robot to the group, send a message /ping in the group

results matching ""

    No results matching ""