Skip to content

Commit 9c648fe

Browse files
committed
feat: fix telegram
1 parent e722979 commit 9c648fe

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

libraries/nestjs-libraries/src/integrations/social/telegram.provider.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,7 @@ export class TelegramProvider extends SocialAbstract implements SocialProvider {
9494
const ids: PostResponse[] = [];
9595
for (const message of postDetails) {
9696
if (
97-
(message?.media?.length || 0) < 3 &&
98-
(message?.media?.length || 0) > 0
97+
(message?.media?.length || 0) === 1
9998
) {
10099
const [{ message_id }] = await telegramBot.sendMediaGroup(
101100
accessToken,

0 commit comments

Comments
 (0)