FIXME This page is not fully translated, yet. Please help completing the translation.
(remove this paragraph once the translation is finished)

Setup telegram so ProfitTrailer can send you Telegram messages


1. Talk to @BotFather (NOT to be confused with TheBotFather ​channel!!!) - Once there type “/​newbot” ​to create a bot. Answer the questions ​by typing answers and pressing enter. - You will receive a message ​containing your bot token.

2. Start a chat with your bot's name (for example ​@MyTPBot) and press start button ​

3. Start another ​chat with https://t.me/MyTelegramID_bot.
3.1 If that doesn't work, try a chat with https://​telegram.me/​id_chatbot
3.2 If that doesn't work paste @id_chatbot into a telegram chat and click it. It should open the chat id bot in a new chat.
3.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
3.4 Finally, here is a link to a page https://ebotstore.de/bot/mytelegramidbot-telegram with a couple more ID chatbots for telegram that you can click if the above doesn't get a valid response.

Remember to click “Start” at the bottom of the page when you start a new chat.

This bot will reveal your Chat ID.

If you can't find it you can also find your telegram chat ID by sending a message to: @userinfobot with content: /start

4. Edit application.properties ​and set :

telegram.botToken = your bot token (ex: 125634789:AdGsJXvOnWxasdtasrfanmvlQQfb-aaa)
telegram.chatId = your chat ID (ex: 1234567890 or -1234567890 for groups)
telegram.postNewOrders = true

NOTE: DO NOT put white space (a space with the keyboard) after the “true” in the telegram.postNewOrders = true statement. This will stop the Telegram bot from working.

If you haven't already, you must set a password for Telegram alerts to work. Refer to application.properties.

5. Stop and restart ProfitTrailer. Remember if in Mac or Linux to CTRL-C the process if in a terminal window or stop the pm2 process or other process manager.

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


Add a second telegram bot:

Edit application.properties ​and add :

telegram.botToken2 = your second bot token (ex: 125634789:AdGsJXvOnWxasdtasrfanmvlQQfb-aaa)
telegram.chatId2 = your second chat ID (ex: 1234567890 or -1234567890 for groups)

Add telegram notifications on startup and shutdown:

Edit application.properties ​and add :

telegram.notificationOnStartup = true
telegram.notificationOnShutdown = true
  • es/telegram_setup.txt
  • Last modified: 12 months ago
  • by t1m3c