Documentation

Guides and help for BotStat services
BotStat API · BotManager

Mailings list

Updated 01.12.2026 1 min read
GET /get_letters/{bot_id} Bot mailings in @BotManRobot, newest first.
bot_id
Bot ID in BotManager (UUID) - the "ID" line in the bot card in @BotManRobot, "My bots" section

Query parameters

ParameterRequiredWhat it is
limitno, 30How many mailings to return
statusnoOnly with this status: 1 - scheduled, 2 - running, 3 - finished, 4 - stopped, 5 - paused
bash
curl "https://api.botstat.io/get_letters/BOT_UUID?limit=10&status=3"

Response

List of mailings (without the ok/result wrapper):

json
[
  {
    "task_id": "7c0e…",
    "date_at": "2026-11-30T12:00:00",
    "bot_username": "examplebot",
    "text_message": "<b>Hi!</b> A new feature is live in the bot",
    "total_users": 120000,
    "success_users": 98000,
    "error_users": 22000,
    "total_groups": 300,
    "success_groups": 250,
    "error_groups": 50,
    "status": 3,
    "end_at": "2026-11-30T12:40:00"
  }
]
FieldWhat it is
task_idMailing ID
date_at / end_atMailing start and end
text_messagePost text
total_users, success_users, error_usersUsers: total, delivered, not delivered
total_groups, success_groups, error_groupsGroups: total, delivered, not delivered
status1 - scheduled, 2 - running, 3 - finished, 4 - stopped, 5 - paused
Was this article helpful? Didn't find the answer? Contact support