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§
- Delete
AllReactions Params - Parameters for
telegram_delete_all_reactions. - Delete
Reaction Params - Parameters for
telegram_delete_reaction. - Moderation
Executor - Tool executor for Telegram reaction moderation.
Enums§
- Moderation
Error - Errors produced by a
ReactionModerationBackend.
Traits§
- Reaction
Moderation Backend - Backend that executes reaction-moderation API calls.