Go to your telegram account, then search for @botfather and start a conversation with the account.
Use the /newbot
command to create a new Telegram Bot. To create a bot using BotFather, you need to give your bot a name and assign a username.
After supplying the name and username for your Telegram Bot, the system will provide you with the API token that you can use to interact with the Bot account via the Telegram API.Copy and paste the API token somewhere safe.