Skip to content
pyed edited this page Jul 21, 2016 · 10 revisions

How to setup a new Telegram bot

First you need to have a Telegram account with a Username, It's a unique name that starts with @, You can set it in the settings area of your Telegram if you haven't already.

Next you go to speak with the @BotFather to make a new bot that you'll use to interact with Transmission, Send the command /newbot to the BotFather, He will ask you which name you want for your bot, choose anything you like, I will call mine Transmission for clarity.

Then he will ask you about the username you would like to choose for the bot, this username has to be unique and ends with bot.

After that you'll get a message with your new bot URL and an HTTP API token.

Start Shifting.

Now you just execute transmission-telegram and set the flag -token= to the bot's token, and the flag -master= to your own Telegram Username NOT the bot's username that ends with bot e.g.

transmission-telegram -token=294691344:AAE0YNeGDlKnwNPG6XcXOPCe4EG5xpLEdYY -master=Adam

if your Transmission is running on http://localhost:9091/transmission/rpc without requiring authentication, it will connect to it, you can now go to your bot and send /help to get a list of commands.

Possible flags:

  • -token= Bot token REQUIRED.
  • -master= Your Telegram username, so the bot will answer only to you REQUIRED.
  • -url= Set to transmission's RPC url, it has to be the full url, starts with http and ends with /rpc.
  • -username= Transmission's RPC username.
  • -password= Transmission's RPC password.
  • -logfile= Write logs to a file instead of STDOUT.

Clone this wiki locally