1
0
Fork 0
mirror of https://github.com/muerwre/vk-tg-bot.git synced 2025-05-12 15:16:40 +07:00

#2 added PostNewHandler.ts

This commit is contained in:
Fedor Katurov 2021-04-29 15:18:24 +07:00
parent 61f0440cb6
commit 8c17836868
10 changed files with 183 additions and 15 deletions

View file

@ -8,7 +8,7 @@ import { ConfigGroup } from "../types";
import { ExtraReplyMessage } from "telegraf/typings/telegram-types";
interface Fields {
buttons?: string[];
buttons?: "link"[];
link_text?: string;
}
@ -46,9 +46,7 @@ export class MessageNewHandler extends VkEventHandler<Fields, Values> {
this.appendButtons(extras, user.id);
await this.telegram
.sendMessageToChan(this.channel, parsed, extras)
.catch(next);
await this.telegram.sendMessageToChan(this.channel, parsed, extras);
await next();
};