tdl
tdl copied to clipboard
How to use with many bots
Hi, I have bot management system with nodejs, I want to use this lib to increase file upload/download limit for my bots ...
I saw the multi account example but there is warning in the comments ...
So practically how many clients can I create ? whats the best way to use this with 1000+ bots?
whats the best way to use this with 1000+ bots?
The best way would be to write a node.js addon in C++ that uses the TDLib's ClientActor API directly.
whats the best way to use this with 1000+ bots?
The best way would be to write a node.js addon in C++ that uses the TDLib's ClientActor API directly.
don't really khow much c++, can I create like 5 clients and keep them connected but login/logout with each one whenever needed?
You can create a new client when you need to login and destroy it when you need to logout
You can create a new client when you need to login and destroy it when you need to logout
Is that ok? for performance ?? Isn't creating a new client heavy on load and resources?
tdlib is already heavy by itself, it takes ~3 seconds for a client to be created. so it may be not ok to create a large amount of clients.