R
R
Roger4822021-03-06 02:57:43
Node.js
Roger482, 2021-03-06 02:57:43

Managed telegram multibot?

Good evening dear professionals.
What is the best way to create multibots, for example, for telegram (requires more updates per second than telegrams can provide for one bot, let the package be telegraf).

What is the best way to control work with tokens?

So far, two options have come to mind
1) through an array of objects (throw a token there and everything you need to work with it)
2) come up with something with the opening of new processes and control them by the parent

Maybe there is some kind of pattern for this thing or any best practices?

I will be very grateful to you!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vitaly, 2021-03-06
@vshvydky

you should think about working with the cart hook, make an endpoint where events arrive on different bots and process them in your context, respectively
, all the settings in the database and a couple of services that, depending on the context, work with the desired bot.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question