[m] hf: add bot type
This commit is contained in:
parent
9ad6501e66
commit
64b5e28bf3
1 changed files with 2 additions and 2 deletions
|
@ -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<Context>) => {
|
||||
bot.command("duck", spamwatchMiddleware, async (ctx: Context & { message: { text: string } }) => {
|
||||
const Strings = getStrings(ctx.from?.language_code);
|
||||
try {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue