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:
parent
61f0440cb6
commit
8c17836868
10 changed files with 183 additions and 15 deletions
|
@ -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();
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue