Add bots files handling logic

This commit is contained in:
2026-10-21 17:56:09 +01:00
parent b0af4db1bf
commit d17a4a7bdd
97 changed files with 5843 additions and 41 deletions
+5
View File
@@ -40,6 +40,11 @@ export type BotJobOutcome = {
* Finish without posting `result` (a reply with nothing left to answer).
*/
silent?: boolean;
/**
* Files the bot wrote and asked to send with its message (`media`
* ids), attached to the result message.
*/
attachments?: number[];
};
export type BotJobRunner = (context: BotJobContext) => Promise<BotJobOutcome>;