Skip to content

πŸ“¨ The ultimate agentic social media scheduling tool πŸ€–

feat: telegram fix

Nevo David2a194b680eec
diff --git a/libraries/nestjs-libraries/src/integrations/social/telegram.provider.ts b/libraries/nestjs-libraries/src/integrations/social/telegram.provider.ts
index 9b1313bc1..bcdc7a096 100644
--- a/libraries/nestjs-libraries/src/integrations/social/telegram.provider.ts
+++ b/libraries/nestjs-libraries/src/integrations/social/telegram.provider.ts
@@ -133,9 +133,7 @@ export class TelegramProvider extends SocialAbstract implements SocialProvider {
? { chatId }
: res.length > 0
? {
- lastChatId:
- res?.[res.length - 1]?.message?.chat?.id ||
- res?.[res.length - 1]?.channel_post?.chat?.id,
+ lastChatId: res[res.length - 1].update_id + 1,
}
: {};
}