Using Telegram API with Gunbot for PNL Alerts

shape
shape
shape
shape
shape
shape
shape
shape
blog-using-telegram-api-with-gunbot for-pnl

Using Telegram API with Gunbot

Gunbot supports Telegram API integration to send real-time notifications directly to your Telegram account or channel. This allows you to stay updated on your trading activities without constantly monitoring the dashboard.

BotFather (https://t.me/botfather) is the official Telegram bot that allows users to create, manage, and configure their own bots on Telegram. It serves as the starting point for anyone who wants to develop a Telegram bot or use the API.


    How to use BotFather to create an API Token

    1. Open the Telegram chat with BotFather (https://t.me/botfather) on Telegram.

    2. Use the "/newbot" command to create a new bot.

    3. Follow the instructions and receive your bot's API Token. Make a copy of the API Token for later as we will need this for Gunbot.

    gunbot-telegram-api-notification

    Obtaining your unique Telegram Chat ID

    1. Open the Telegram chat with @chatIDrobot (https://t.me/botfather) on Telegram.

    2. Send any message to the bot and it will send you a message back.

    gunbot-telegram-api-chatid

    2. Make a copy of your chat_id as we will need this on the next section. The chat_id is typically a positive number representing a specific user. In this case it's: 1827091440


    Setting up Gunbot Notifications directly to your Telegram account

    1. Access the Telegram settings in Gunbot and click on the User Profile Icon.

    gunbot-telegram-api-chatid

    2. Enable the Telegram bot and Enable test message. Locate your Telegram settings and fill in the sections with your Telegram API Token and Chat ID.

    gunbot-telegram-api-chatid

    3. Once saved. If everything is setup correctly, you will receive a test message from the telegram bot. You can disable the test message if everything was successful.

    gunbot-telegram-api-chatid

    Telegram Notification Examples