Skip to main content

How do I create a custom hosted Telegram bot for my business?

Updated over a month ago

Introducing Custom Telegram Bots

Antistock builds the most powerful software tools for Telegram-based stock businesses. With our custom Telegram bots, you can:

  • Send automated custom messages and stock update marketing alerts directly to customer' inboxes when they connect their Telegram account.

  • View advanced data analytics tied to user distributions, connected users, and more directly through your business dashboard.

  • Create a rule to reward customers with balance, coupons, or specific products if they enable notifications and connect their Telegram account.

  • Set required dates and timelines for customers to connect their accounts to receive a reward. For example: "Receive 10% off coupon if connected for 30 days".

  • Generate one-time invite links for customers to join your chatroom after they complete a purchase at checkout.

and so much more behind the scenes. We're always open to continuing to build new features with Telegram to improve your customer experience as well.

Frequently Asked Questions

Create Telegram Bot

If you haven't previously created a Telegram bot, it's quite simple. When you open the Telegram app, open a new chat with @BotFather.

When you open a new chat, use the /newbot command and follow the required steps until you're provided with a bot token. You can find a step-by-step guide here.

Your token will look something like this (this is not a real token):

9284716503:BBXZ72mnpQeHf4tjcLKqstVUWxDyz53nbp

Once you've created your Telegram bot with BotFather and saved your token, you'll want to copy and paste your token into the "Token" input field when you tap on "Create Telegram Bot" via the bot builder integration page on the dashboard here: https://dash.antistock.io/integrations/telegram-bots/create.

Customize Your Bot

To maximize conversions and reduce spam reports, we strongly recommend customizing the name, avatar, description, and button of your bot so that your customers aren't confused when receiving notices with their payments or updates from your business.

If you want to customize your bot, you'll have to message the @BotFather bot once again and enter specific edit commands within the chat field.

While you're in control of your design, we have a few recommendations to help you generate new sales through Telegram:

  • /setname - changes the bot's name. We recommend naming your bot: "Company_Name_Here Bot"

  • /setdescription - changes the bot's description. We recommend adding a description that accurately reflects your business.

  • /setimage - changes the bot's avatar. We recommend using the company logo you use on Antistock.

Permissions, Security, and Features

By default, Telegram bots are limited to very specific permissions. If you want to extend functionality for your custom hosted Telegram bot (for example, receiving photos, files, or voice messages), you’ll need to enable additional settings through @BotFather.

We strongly recommend keeping your Telegram bot token secure. Never share it publicly or hardcode it into client-side applications. Antistock only requires the token once to establish the secure connection on your dashboard.

As a reminder, data traffic between your custom hosted Telegram bot and Antistock runs through our protected infrastructure.

Nice To Knows

Before launching your bot to your customers, we recommend testing your bot in a private Telegram group or with a test account. This helps confirm that stock alerts, rewards, and invite links are working as intended.

If your bot isn’t responding after setup, double-check the token, confirm the bot is set to “Online” in your Antistock dashboard, and verify that it has not been disabled through @BotFather.

If you're experiencing issues with your custom hosted Telegram bot, we recommend connecting directly with your Account Manager. If your business does not have an assigned Account Manager, you'd want to contact our Business Support team.

Did this answer your question?