mirror of
https://github.com/openclaw/openclaw.git
synced 2026-06-07 22:09:57 +00:00
fix(config): add missing editMessage and createForumTopic to Telegram actions schema (#35498)
Merged via squash.
Prepared head SHA: 631fc14832
Co-authored-by: ingyukoh <6015960+ingyukoh@users.noreply.github.com>
Co-authored-by: altaywtf <9790196+altaywtf@users.noreply.github.com>
Reviewed-by: @altaywtf
This commit is contained in:
@@ -196,4 +196,19 @@ describe("config schema regressions", () => {
|
||||
|
||||
expect(res.ok).toBe(true);
|
||||
});
|
||||
|
||||
it("accepts telegram actions editMessage and createForumTopic", () => {
|
||||
const res = validateConfigObject({
|
||||
channels: {
|
||||
telegram: {
|
||||
actions: {
|
||||
editMessage: true,
|
||||
createForumTopic: false,
|
||||
},
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
expect(res.ok).toBe(true);
|
||||
});
|
||||
});
|
||||
|
||||
@@ -244,7 +244,9 @@ export const TelegramAccountSchemaBase = z
|
||||
sendMessage: z.boolean().optional(),
|
||||
poll: z.boolean().optional(),
|
||||
deleteMessage: z.boolean().optional(),
|
||||
editMessage: z.boolean().optional(),
|
||||
sticker: z.boolean().optional(),
|
||||
createForumTopic: z.boolean().optional(),
|
||||
})
|
||||
.strict()
|
||||
.optional(),
|
||||
|
||||
Reference in New Issue
Block a user