2

I'm writing a Wordpress plugin using a Telegram Bot to send notification to a channel. I can send a command to my already created BOT in this way: https://api.telegram.org/bot[token]/[command]

Is it possible to create a new BOT by code? e.g. sending the following command or similar

https://api.telegram.org/bot[@BotFather]/newbot

Thanks Enzo

Hoi_A
  • 472
  • 1
  • 10
  • 20
Enzo Costantini
  • 167
  • 1
  • 9
  • you should probably regenerate that bot token you posted now, because that's supposed to be private and will give anyone who has it control over your bot. – Hoi_A Feb 06 '17 at 09:57

1 Answers1

2

Creating bots using the Telegram Bot API is currently not possible.

However, you could use the Telegram API which is generally used to make clients, to interact with Botfather. This would be way more complicated than a single HTTP request though.

Hoi_A
  • 472
  • 1
  • 10
  • 20