for use this, just run command:
nano run_telegram_bot_api.sh and replace your api keys
bash run_telegram_bot_api.sh &
or
nano run_telegram_bot_api.py and replace your api keys
python3 run_telegram_bot_api.py &
Document: tdlib/telegram-bot-api build