Skip to content
Proud to collaborate with Microsoft for Startups

telegram.message.delete-api ​

Delete a message via Telegram Bot API (deleteMessage) and return whether it succeeded. Input takes bot_uuid; the token is resolved from the TelegramBot row internally.

Call Telegram deleteMessage for a bot identified by bot_uuid.

PENDING (auto_advance=execute) → COMPLETED with {ok, chat_ref, message_ref} ↘ FAILED on any error

Single-responsibility: one API call, no DB writes.

Overview ​

PropertyValue
Workflow typeAtomic
LibraryApp-telegram
Version1.0

Input Schema ​

FieldTypeRequiredDefaultDescription
bot_uuiduuidYes—UUID of the TelegramBot row whose token will be used to delete the message. The workflow resolves bot_uuid → bot_token internally.
chat_refintegerYes—Telegram integer chat reference the message lives in. Negative for groups/channels (e.g. -100123456), positive for private chats.
message_refintegerYes—Telegram integer message id to delete (message_id from the send response).
workflow_run_idstringNo—Engine-stamped parent run id (DAG step target)

Output Schema ​

FieldTypeRequiredDefaultDescription
okbooleanYes—True when Telegram accepted the deleteMessage call.
chat_refintegerYes—Telegram integer chat reference (echo of input).
message_refintegerYes—Telegram integer message id that was deleted (echo of input).
failure_reasonstringNo—Engine-stamped human-readable failure reason
failure_typestringNo—Engine-stamped failure category
failed_actionstringNo—Engine-stamped action that raised
failed_at_statestringNo—Engine-stamped state when the workflow failed
failed_stepstringNo—Engine-stamped step name (DAG path)
failed_layerstringNo—Engine-stamped layer index (DAG path)
errorstringNo—Engine-stamped exception message
error_typestringNo—Engine-stamped exception class name

States ​

StateInitialTerminalSuccessAuto-advanceDescription
pendingYesNo—executeDelete message via Telegram Bot API
completedNoYesYes—Message deleted
failedNoYesNo—Message delete failed

State Diagram ​

Transitions ​

FromActionToDescription
pendingexecutecompleted—
* (any state)failfailed—

API Usage ​

bash
POST /api/workflows/start
Content-Type: application/json

{
  "workflow_type": "telegram.message.delete-api",
  "initial_data": {
    "bot_uuid": "value",
    "chat_ref": 123,
    "message_ref": 123
  }
}