Skip to main content

Module moderation

Module moderation 

Source
Expand description

Reaction moderation executor for Telegram Bot API 10.0.

Exposes two structured tool calls — telegram_delete_reaction and telegram_delete_all_reactions — that let the agent remove emoji reactions from messages in chats where the bot has admin rights.

The executor is platform-agnostic: it delegates the actual API calls to a ReactionModerationBackend implementation, keeping zeph-tools independent of zeph-channels.

§Wiring

In src/agent_setup.rs, build a TelegramModerationBackend (from zeph-channels) and wrap it with ModerationExecutor:

use zeph_channels::telegram_moderation::TelegramModerationBackend;
use zeph_tools::moderation::ModerationExecutor;

let api = telegram_channel.api_ext().clone();
let me = api.get_me().await?;
let backend = TelegramModerationBackend::new(api, me.id);
let executor = ModerationExecutor::new(backend);

Structs§

DeleteAllReactionsParams
Parameters for telegram_delete_all_reactions.
DeleteReactionParams
Parameters for telegram_delete_reaction.
ModerationExecutor
Tool executor for Telegram reaction moderation.

Enums§

ModerationError
Errors produced by a ReactionModerationBackend.

Traits§

ReactionModerationBackend
Backend that executes reaction-moderation API calls.