Skip to content

Commit

Permalink
turned off automatic pdf for now
Browse files Browse the repository at this point in the history
  • Loading branch information
theofandrich committed Oct 13, 2023
1 parent f3fcad0 commit c421dcf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/modules/document-handler/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c421dcf

Please sign in to comment.