top of page

How to: set up Custom Bot

  • Writer: Thomas Schler
    Thomas Schler
  • Jun 25
  • 2 min read

Updated: Jul 16


  1. Create a new custom bot via /newbot


  • Go to t.me/BotFather

  • Create new bot using the /newbot command

  • Give it the name and username you want



  1. In Bot Settings, set group & channel permissions on


  • In BotFather use /mybots command

  • Select your new custom bot

  • Tap on Bot Settings

  • Set all Group Admin Rights and Channel Admin Rights to ✓



  1. Create a Mini App via /newapp and connect it


  • In BotFather use /newapp and select your bot

  • Add a title and a short description of your choice

  • Upload a 640x360 photo (or upload this default one). This is not used by the bot

  • Skip demo gif with /empty

  • ⚠️ Use https://app.t22.bot as the app URL

  • ⚠️ Use 'dashboard' as the short name



  1. Connect your bot's API token


  • Find the API token in BotFather by typing /mybots, selecting your custom bot and clicking on "API Token"

  • Copy this token and paste it in the T22 Dashboard mini-app

  • Click Connect the bot



  1. Edit your bot profile picture


  • Go to BotFather

  • Use /mybots command and select your bot

  • Go to Edit Bot and then Edit Botpic

  • Send your chosen bot profile picture



  1. ADD YOUR CUSTOM BOT TO YOUR GROUP


  • Click Add to group in the T22 Dashboard mini-app

  • Select the group for which you want to replace T22 with your own Custom Bot

  • ⚠️ Make sure to give your Custom Bot all the necessary admin permissions (otherwise it will not work)

  • Click add Bot as Admin



T22 should automatically be kicked from the group and your Custom Bot should replace it


To change settings for your Custom Bot in this group, open the T22 Dashboard mini-app, select your group and change the settings you want

 
 
bottom of page