How to make bot api
I recommend you utilize a search engine and ask it "how to make a telegram bot api". Then you will get many links that provide docs or video tutorials.
This script sets up a bot that responds to the command "/start" by sending a message "I'm a bot, please talk to me!". Replace YOUR_TOKEN_HERE with your bot token which you can get it from @BotFather. Run this script on your local machine or on a server, as long as it has access to the Internet. Once the script is running, you can interact with the bot by sending it messages via the Telegram app. https://code.sololearn.com/cD3Hq0QU6r4q/?ref=app