Telegram settings

When you want Gunbot to send Telegram notifications of every trade placed, this is where you set that up. Steps needed:

  1. Talk to @botfather. Create a new bot with the command /newbot and choose a name and username for your bot. Save the bot token shown
  2. Talk to @myidbot to see your Telegram ID, save it.
  3. Enable Telegram notifications for Gunbot, and enter the token and ID you’ve just gathered.
  4. Start a chat with the username you’ve picked for your bot, and hit the start button.
Parameter Default Value Description
TELEGRAM_ENABLED false Values: true or false.
Enable this to have Gunbot send notifications through Telegram of every trade it makes.
TELEGRAM_NICK Gunbot Values: string.
Each trade notification starts with the nickname set here. Use this to easily check from which bot instance the notifications have been sent.
TOKEN YOURTOKEN Values: string.
The Telegram token for your bot.
chat_id “123456789” Values: string.
The Telegram ID for your bot to send its messages to.

Valid options:

A positive integer, to send messages directly to a telegram user. Use this method when you just want to receive notifications for your personal use.

To find your telegram id, send /start to @MyTelegramID_bot and it will respond with your ID.

A negative integer, to send messages to a group chat.

The easiest way to obtain a groups id, is to open login, and navigate to the group. Now pay attention to the URL, you should see something like – the number after the p=g part is the group id.

This must be listed in chat_id with a – symbol in front, in this case “-12345”

TG_PL_ONLY false Values: true or false.
Optional parameter. When enabled notifications will be only sent for strategy sell orders.
TG_ORDER_TIMEOUT 0 Values: numerical, represent time in seconds.
When set above 0, you’ll receive a Telegram dialog to manually allow or deny every order Gunbot wants to place. During the set amount of seconds you can choose to allow the order (and it will immediately be placed) or deny it. After the timeout passes without reply, the order will be placed at the exchange.
TG_TEST false Values: true or false.
Enable this to test if your Telegram bot is working. A test message will be sent on each cycle. Disable after verifying your bot works.

Sign up for our newsletter: