Skip to content

Commit

Permalink
Update to layer 193
Browse files Browse the repository at this point in the history
  • Loading branch information
painor committed Nov 19, 2024
1 parent 4dac9e9 commit 9bb5322
Show file tree
Hide file tree
Showing 8 changed files with 1,855 additions and 343 deletions.
19 changes: 11 additions & 8 deletions gramjs/Utils.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
import type { Entity, EntityLike, MessageIDLike } from "./define";
import { Api } from "./tl";
import bigInt from "big-integer";
import * as markdown from "./extensions/markdown";
import { EntityCache } from "./entityCache";
import mime from "mime";
import type { ParseInterface } from "./client/messageParse";
import { MarkdownParser } from "./extensions/markdown";
import { CustomFile } from "./client/uploads";
import type { Entity, EntityLike, MessageIDLike } from "./define";
import { EntityCache } from "./entityCache";
import { HTMLParser } from "./extensions/html";
import { MarkdownParser } from "./extensions/markdown";
import { MarkdownV2Parser } from "./extensions/markdownv2";
import { returnBigInt } from "./Helpers";
import { Api } from "./tl";

export function getFileInfo(
fileLocation:
Expand Down Expand Up @@ -81,8 +82,6 @@ export function* chunks<T>(arr: T[], size = 100): Generator<T[]> {
}

import TypeInputFile = Api.TypeInputFile;
import { HTMLParser } from "./extensions/html";
import { returnBigInt } from "./Helpers";

const USERNAME_RE = new RegExp(
"@|(?:https?:\\/\\/)?(?:www\\.)?" +
Expand Down Expand Up @@ -744,7 +743,11 @@ export function getAttributes(
}: GetAttributesParams
) {
const name: string =
typeof file == "string" ? file : file.name || "unnamed";
typeof file == "string"
? file
: "name" in file
? file.name || "unnamed"
: "unnamed";
if (mimeType === undefined) {
mimeType = mime.getType(name) || "application/octet-stream";
}
Expand Down
2 changes: 1 addition & 1 deletion gramjs/Version.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const version = "2.26.3";
export const version = "2.26.5";
2 changes: 1 addition & 1 deletion gramjs/tl/AllTLObjects.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export const LAYER = 184;
export const LAYER = 193;

import { Api } from "./";

Expand Down
Loading

0 comments on commit 9bb5322

Please sign in to comment.