fix: refine telegram reactions (#964) (thanks @bohdanpodvirnyi)
This commit is contained in:
@@ -79,9 +79,10 @@ export type TelegramAccountConfig = {
|
||||
/**
|
||||
* Controls which user reactions trigger notifications:
|
||||
* - "off" (default): ignore all reactions
|
||||
* - "own": notify when users react to bot messages
|
||||
* - "all": notify agent of all reactions
|
||||
*/
|
||||
reactionNotifications?: "off" | "all";
|
||||
reactionNotifications?: "off" | "own" | "all";
|
||||
/**
|
||||
* Controls agent's reaction capability:
|
||||
* - "off": agent cannot react
|
||||
|
||||
@@ -67,7 +67,7 @@ export const TelegramAccountSchemaBase = z.object({
|
||||
deleteMessage: z.boolean().optional(),
|
||||
})
|
||||
.optional(),
|
||||
reactionNotifications: z.enum(["off", "all"]).optional(),
|
||||
reactionNotifications: z.enum(["off", "own", "all"]).optional(),
|
||||
reactionLevel: z.enum(["off", "ack", "minimal", "extensive"]).optional(),
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user