feat: fix telegram

This commit is contained in:
Nevo David 2025-01-20 23:47:25 +07:00
parent e722979497
commit 9c648fe1ba
1 changed files with 1 additions and 2 deletions

View File

@ -94,8 +94,7 @@ export class TelegramProvider extends SocialAbstract implements SocialProvider {
const ids: PostResponse[] = [];
for (const message of postDetails) {
if (
(message?.media?.length || 0) < 3 &&
(message?.media?.length || 0) > 0
(message?.media?.length || 0) === 1
) {
const [{ message_id }] = await telegramBot.sendMediaGroup(
accessToken,