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:
parent
8c44d6115f
commit
ab80a4ab8d
1 changed files with 6 additions and 15 deletions
|
@ -114,21 +114,12 @@ export class PostNewHandler extends VkEventHandler<Fields, Values> {
|
|||
thumbs.length > 0;
|
||||
|
||||
if (hasThumb) {
|
||||
if (this.template.fields.images_limit! <= 1) {
|
||||
msg = await this.telegram.sendPhotoToChan(
|
||||
this.channel.id,
|
||||
this.trimTextForPhoto(text, PHOTO_CAPTION_LIMIT, postType, user),
|
||||
thumbs[0]!,
|
||||
extras
|
||||
);
|
||||
} else {
|
||||
msg = (await this.telegram.sendPhotoGroupToChan(
|
||||
this.channel.id,
|
||||
this.trimTextForPhoto(text, PHOTO_CAPTION_LIMIT, postType, user),
|
||||
thumbs,
|
||||
extras
|
||||
)) as any;
|
||||
}
|
||||
} else {
|
||||
msg = await this.telegram.sendMessageToChan(
|
||||
this.channel.id,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue