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

removed photo group post

This commit is contained in:
Fedor Katurov 2021-05-27 09:43:15 +07:00
parent 8c44d6115f
commit ab80a4ab8d

View file

@ -114,21 +114,12 @@ export class PostNewHandler extends VkEventHandler<Fields, Values> {
thumbs.length > 0; thumbs.length > 0;
if (hasThumb) { if (hasThumb) {
if (this.template.fields.images_limit! <= 1) { msg = await this.telegram.sendPhotoToChan(
msg = await this.telegram.sendPhotoToChan( this.channel.id,
this.channel.id, this.trimTextForPhoto(text, PHOTO_CAPTION_LIMIT, postType, user),
this.trimTextForPhoto(text, PHOTO_CAPTION_LIMIT, postType, user), thumbs[0]!,
thumbs[0]!, extras
extras );
);
} else {
msg = (await this.telegram.sendPhotoGroupToChan(
this.channel.id,
this.trimTextForPhoto(text, PHOTO_CAPTION_LIMIT, postType, user),
thumbs,
extras
)) as any;
}
} else { } else {
msg = await this.telegram.sendMessageToChan( msg = await this.telegram.sendMessageToChan(
this.channel.id, this.channel.id,