API methods
Last updated
Last updated
First of all, to insert in all requests.
Get information about user.
GET https://app.tgtaps.com/api/bot-users/external/bot-user?apiKey=API_KEY&botId=BOT_ID&userTelegramId=TELEGRAM_ID
Example response:
Get friends of the user.
GET https://app.tgtaps.com/api/bot-users/external/bot-user-friends?botId=BOT_ID&apiKey=API_KEY&userTelegramId=TELEGRAM_ID
Example response:
Send message via bot to the user.
POST https://app.tgtaps.com/api/bot-users/external/send-message
Example request body:
You can use HTML tags to format your message.
Increase points of the user.
GET https://app.tgtaps.com/api/bot-users/external/increase-points?botId=BOT_ID&apiKey=API_KEY&userTelegramId=TELEGRAM_ID&points=AMOUNT
Something unclear in docs or you know how to improve article? We will answer you and then promise to improve the article within 3 days.