Skip to content

Commit

Permalink
fix: fileId format
Browse files Browse the repository at this point in the history
  • Loading branch information
rikumi committed Dec 16, 2024
1 parent 2798b02 commit 1894303
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server/routes/telegram-file-new.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { request } from 'https';
import { getTelegramFileId } from 'src/database/tgfile';
import mime from 'mime-types';

export const ROUTE = /^\/f\/([^.]+)\.(\w+)(\.gz)?$/;
export const ROUTE = /^\/f\/([^.]+)\.([\w-]+)(\.gz)?$/;

const fileHandler = async (req: IncomingMessage, res: ServerResponse) => {
const id = RegExp.$1;
Expand Down

0 comments on commit 1894303

Please sign in to comment.