From c421dcf25ef5f253d1167a4d035be09cb56ec881 Mon Sep 17 00:00:00 2001 From: Theo Fandrich Date: Thu, 12 Oct 2023 17:49:30 -0700 Subject: [PATCH] turned off automatic pdf for now --- src/modules/document-handler/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/modules/document-handler/index.ts b/src/modules/document-handler/index.ts index cfd86174..41a951d2 100644 --- a/src/modules/document-handler/index.ts +++ b/src/modules/document-handler/index.ts @@ -33,7 +33,8 @@ export class DocumentHandler implements PayableBot { ctx.transient.analytics.module = this.module try { const file = await ctx.getFile() - const documentType = ctx.message.document?.mime_type + const documentType = null + // const documentType = ctx.message.document?.mime_type if (documentType === 'application/pdf' && ctx.chat.id) { const url = file.getUrl() const fileName = ctx.message.document?.file_name ?? file.file_id