diff --git a/libraries/nestjs-libraries/src/integrations/social/telegram.provider.ts b/libraries/nestjs-libraries/src/integrations/social/telegram.provider.ts index 9b1313bc..bcdc7a09 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, } : {}; }