YOUTUBE视频教程

B站视频教程

设置通知,以便ProfitTrailer发送交易信息

Discord

1. In Discord, create your own server by clicking the + button in the server menu on the left. See our guide HERE!
Discord also published their own guide Here.

2. Create a text channel by right clicking on your server icon and selecting “Create Channel”.

3. Create a discord bot. See our guide HERE!

4. Add the bot to your server

5. Configure the Discord settings in the application.properties file. The primary two are:

discord.bot_token_1 = your bot token (eg: H64Fgytwfh764.ig$749266502F23yvsEhhjJH )
discord.chat_1 = the channel name (eg: steves-pt-bot or bot-messages)

6. Configure the remaining Discord settings in application.properties.

7. Go to http://localhost:8081/settings/discordTestMessage to test your telegram setup. You will receive a message ​if the setup is correct.

Notes:

  1. depending on the roles and permissions on your server you need to ensure the bot has the appropriate privileges to pair in the channel.
  2. In bot versions 2.1.x or below, You will not receive any messages when in test mode. Bot versions 2.2.0+ allow test mode messages.
  3. a password is required to use notifications.


电报

1. 在电报中,发送私信 @BotFather (不要与TheBotFather频道混淆,他是一个独立的个人)

  • 输入“/ newbot”来创建机器人。键入答案并按Enter键回答问题。
  • 你将接收到包含机器人API TOKEN的信息。

2. 在电报中,发送私信@get_id_bot

  • 你将得到你的chat_id信息。

3. 开始与我们所创建的机器人对话 https://t.me/MyTelegramID_bot或者在电报搜索框直接输入我们的机器人名字,点击开始。

  • 这样我们所创建的机器人就会出现在我们的会话列表。

4. 配置相关配置文件application.properties 主要有两个地方:

telegram.bot_token_1 = your bot token (eg: 125634789:AdGsJXvOnWxasdtasrfanmvlQQfb-a2g)
telegram.chat_1 = your chat ID (eg: 1234567890 or -1234567890 for groups)

5. 打开这个http://localhost:8081/settings/telegramTestMessage 测试电报消息. 你将接收到相关消息.

6. 配置剩余的 Telegram settings 在 application.properties.

NOTES:

  1. a password is required to use notifications.
  2. In bot versions 2.1.x or below, You will not receive any messages when in test mode. Bot versions 2.2.0+ allow test mode messages.
  3. For group chats invite https://​telegram.me/​myidbot to the existing group and type /getgroupid@myidbot (include the '-' symbol when adding it to your application.properties file
  4. Remember to click “Start” at the bottom of the page when you start a new chat.
Enter your comment:
 
  • zh/zh_notification_setup.txt
  • Last modified: 14 days ago
  • by mango