1
0
Fork 0
mirror of https://github.com/muerwre/vk-tg-bot.git synced 2025-04-24 22:46:41 +07:00

added notice on calendar event

This commit is contained in:
Fedor Katurov 2024-01-12 16:52:49 +07:00
parent 65070fd2eb
commit 85a2bf0dd9

View file

@ -58,7 +58,11 @@ export class PostNewCalendarHandler extends VkEventHandler {
// TODO: event is deeply in future, like 2 months or more
const end = addMinutes(start, 15);
const description = [this.generateVkPostUrl(context.wall.id), maybeTrim(text, 512)].join('\n\n');
const description = [
'Пожалуйста, проверьте дату и время в посте:',
this.generateVkPostUrl(context.wall.id),
maybeTrim(text, 512),
].join('\n\n');
// TODO: event exist and summary contains "отмен" --> delete post