Posted on : 08 Apr, 2023 | Last Update - 1 year ago
To create a Telegram bot, you complete the following steps:
@botfather
/newbot
By following these steps, you will create a token which is required to receive and send messages using the Telegram API. This token is a critical piece of authentication data which must be prevented from compromising.
To connect the Chapa Test Bot (@ChapaPaymentsTestBot) to the merchant bot, complete the following steps:
@ChapaPaymentsTestBot
/mybots
To connect the Chapa Test Bot (@@chapapayment_bot) to the merchant bot, complete the following steps:
@@chapapayment_bot
By following these steps, you will create a payment token required to process test payments with the merchant bot. This token is a critical piece of authentication data which must be prevented from compromising.
Unlike any other payment methods, payments with the Telegram bot do not use digital signatures. Instead, authentication is performed by using authorization and payment tokens; authorization is a required token to send and receive messages through the Telegram API. A token is required to perform payments in test or production mode. An authorization token is generated when creating a merchant bot, and a payment token is generated when integrating the bot with Chapa.
The tokens are critical pieces of authentication data which must be prevented from compromising. If any token is compromised, you must generate a new one by following the instructions.
Once you have these keys, you can use them in your bot.
Check out a very simplified example: https://github.com/Chapa-Et/chapa-telegram-bot-test-shop