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 {