1
0
Fork 0
mirror of https://github.com/muerwre/vk-tg-bot.git synced 2025-04-25 06:56:40 +07:00

#5 updated suggest template

This commit is contained in:
Fedor Katurov 2021-05-12 12:49:41 +07:00
parent 174dcac9e6
commit 1fe3d35540
3 changed files with 22 additions and 4 deletions

View file

@ -15,6 +15,7 @@ import { extractURLs } from "../../../utils/extract";
import logger from "../../logger";
import Composer from "telegraf";
import CallbackQueryUpdate = Update.CallbackQueryUpdate;
import { Template } from "../../template";
type Button = "links" | "likes" | "more";
type UrlPrefix = string;
@ -92,6 +93,7 @@ export class PostNewHandler extends VkEventHandler<Fields, Values> {
const extras: ExtraReplyMessage = {
disable_web_page_preview: true,
parse_mode: "Markdown",
reply_markup: await this.createKeyboard(text, undefined, context.wall.id),
};
@ -372,7 +374,7 @@ export class PostNewHandler extends VkEventHandler<Fields, Values> {
user,
group: this.group,
type,
text,
text: Template.cleanText(text),
});
};