Skip to content

Commit

Permalink
Change how Telegram API objects are represented (#219)
Browse files Browse the repository at this point in the history
  • Loading branch information
roj1512 committed May 17, 2024
1 parent 51f5f05 commit 560597f
Show file tree
Hide file tree
Showing 110 changed files with 43,239 additions and 89,414 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,9 @@ jobs:
path: ${{ matrix.cache_path }}
key: ${{ runner.os }}-${{ hashFiles('0_deps.ts') }}

- run: deno test --allow-env=LOG_VERBOSITY
- run: deno test --allow-env
env:
__TYPE_MAP: 1

transform-browser:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -133,7 +135,9 @@ jobs:
- name: Transform
run: deno run -A https://raw.githubusercontent.com/MTKruto/npm/main/transform_browser.ts 0.0.0 ./mod.ts

env:
__TYPE_MAP: 1

transform-node:
runs-on: ubuntu-latest
steps:
Expand Down Expand Up @@ -179,6 +183,8 @@ jobs:
- name: Transform
run: deno run -A https://raw.githubusercontent.com/MTKruto/npm/main/transform_node.ts 0.0.0 ./mod.ts
env:
__TYPE_MAP: 1

doc:
runs-on: ubuntu-latest
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ jobs:
cd dist
npm publish --access public
env:
__TYPE_MAP: 1
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

create-release:
Expand Down
15 changes: 7 additions & 8 deletions 2_tl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,11 @@
*/

export { TLError } from "./tl/0_tl_raw_reader.ts";
export * from "./tl/1_tl_object.ts";
export { type enums, types } from "./tl/2_types.ts";
export * as Api from "./tl/0_api.ts";
export * from "./tl/1_utilities.ts";
export * from "./tl/2_serialize.ts";
export * from "./tl/3_utilities.ts";
export { functions } from "./tl/3_functions.ts";
export * from "./tl/4_tl_reader.ts";
export * from "./tl/5_tl_writer.ts";
export * from "./tl/6_rpc_result.ts";
export * from "./tl/7_message.ts";
export * from "./tl/8_message_container.ts";
export * from "./tl/3_tl_reader.ts";
export * from "./tl/4_tl_writer.ts";
export * from "./tl/4_rpc_result.ts";
export * from "./tl/5_message.ts";

0 comments on commit 560597f

Please sign in to comment.