P
P
pavlyk2018-02-19 09:36:05
Bots
pavlyk, 2018-02-19 09:36:05

How to host many telegram bots on one server?

There are several very popular bots in the telegram that work through "intermediary" bots.
How it looks, I create my bot and get its token, there is a main bot that I go to and throw off my bot's token, and then I start working with my bot.
Actually the question is how to organize it technically on your server.
There is a main bot with it, everything is clear, it works either on webhooks or on pulling, then they throw off the token of the new bot, what options do I have, automatically copy the script and run it for pulling only for the new bot? and so for each new? That is, if there are 100 bots, are these 100 scripts launched for pulling? Something tells me that this is not how it should work....

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
Oleg, 2018-02-19
@pavlyk

simpler eg hooks will be like this
https://samle.com/bots/bot_id/bot
secret rewrite to
bots.php?botid=$1§er=$2

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question