ContentRunner Bot Set Active icon

ContentRunner Bot Set Active

Update only is_active for a bot by tg_bot_id (bot must already exist)

ContentRunner Bot Set Active

AI-generated

Summary

Updates the is_active flag for an existing bot in the PostgreSQL bots table, matching it by Telegram bot ID.

Inputs

  • Telegram Bot ID (required) — Bot identifier used to find the row by tg_bot_id. Defaults to the incoming item’s botId, bot.external_id, or external_id, in that order.
  • Is Active — Boolean value to write to the bot’s is_active field; defaults to true.

Output shape

A list of items, one per input item, each containing the updated database row.

Requires ContentRunner PostgreSQL credentials. If the ID is empty or no bot matches, the operation errors; with Continue On Fail enabled, it returns an item containing an error field instead.

Links

Discussion