About the API
This API can be used to communicate with your bot through your own applications, such as mobile apps. It is not meant to be used to create bots, only to interact with the ones you already created.
The first thing you're going to need is your bot's
. This can be found in
Every request made to the API
include the following headers:
api-token: [YOUR BOT'S API TOKEN]
||Receives a bot username, creates a chat for this bot and returns the chat id.
Receives a message from the user and returns the bot’s reply.
The chat_id must match the one received by the previous endpoint.