From 64b5e28bf3dd8ff0f4a45e5113b9bc8c5689ae2c Mon Sep 17 00:00:00 2001 From: Aidan Date: Sat, 26 Apr 2025 14:13:48 -0400 Subject: [PATCH] [m] hf: add bot type --- src/commands/animal.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/commands/animal.ts b/src/commands/animal.ts index d637dd2..89eecba 100644 --- a/src/commands/animal.ts +++ b/src/commands/animal.ts @@ -3,11 +3,11 @@ import { getStrings } from '../plugins/checklang'; import { isOnSpamWatch } from '../spamwatch/spamwatch'; import spamwatchMiddlewareModule from '../spamwatch/Middleware'; import axios from 'axios'; -import { Context } from 'telegraf'; +import { Context, Telegraf } from 'telegraf'; const spamwatchMiddleware = spamwatchMiddlewareModule(isOnSpamWatch); -export default (bot) => { +export default (bot: Telegraf) => { bot.command("duck", spamwatchMiddleware, async (ctx: Context & { message: { text: string } }) => { const Strings = getStrings(ctx.from?.language_code); try {