Skip to content

Latest commit

 

History

History

ThreadPoolBot

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Thread Pool Bot

This example shows how to program a Telegram Bot that handles loads of requests using pre included cpr::ThreadPool (same approach with other threadpools).

If your Bot is facing high demand in a Group or has thousands of users, you should consider using a Thread Pool that can handle multiple user requests simultaneously.

Run

mkdir build && cd build
cmake .. -DCMAKE_BUILD_TYPE=Release
make -j8
./thread_pool_bot YOUR_BOT_TOKEN

Previous

Location


Location