├── .editorconfig ├── .gitattributes ├── .gitignore ├── .prettierignore ├── .yarn └── releases │ └── yarn-3.2.1.cjs ├── .yarnrc.yml ├── LICENSE ├── README.md ├── generator ├── api │ ├── index.js │ ├── source │ │ ├── api.tl │ │ └── mtproto.tl │ └── template │ │ ├── allTlObject.txt │ │ ├── combinator.txt │ │ └── namespace.txt ├── error │ ├── index.js │ ├── source │ │ ├── 303_SEE_OTHER.tsv │ │ ├── 400_BAD_REQUEST.tsv │ │ ├── 401_UNAUTHORIZED.tsv │ │ ├── 403_FORBIDDEN.tsv │ │ ├── 406_NOT_ACCEPTABLE.tsv │ │ ├── 420_FLOOD.tsv │ │ ├── 500_INTERNAL_SERVER_ERROR.tsv │ │ └── 503_SERVICE_UNAVAILABLE.tsv │ └── template │ │ ├── all.txt │ │ ├── constructor.txt │ │ ├── extends.txt │ │ └── index.txt └── license │ └── index.js ├── package.json ├── prettier.config.js ├── src ├── Client.ts ├── Logger.ts ├── Version.ts ├── connection │ ├── TCP │ │ ├── TCPAbridged.ts │ │ ├── TCPAbridgedO.ts │ │ ├── TCPFull.ts │ │ ├── TCPIntermediate.ts │ │ ├── TCPIntermediateO.ts │ │ ├── index.ts │ │ └── tcp.ts │ ├── connection.ts │ ├── index.ts │ └── webSocket.ts ├── crypto │ ├── Aes.ts │ ├── Mtproto.ts │ ├── Password.ts │ ├── Prime.ts │ ├── RSA.ts │ └── index.ts ├── errors │ ├── RpcError.ts │ └── index.ts ├── helpers.ts ├── index.ts ├── raw │ ├── core │ │ ├── BytesIO.ts │ │ ├── GzipPacked.ts │ │ ├── Message.ts │ │ ├── MsgContainer.ts │ │ ├── TLObject.ts │ │ ├── index.ts │ │ └── primitive │ │ │ ├── Bool.ts │ │ │ ├── Bytes.ts │ │ │ ├── Double.ts │ │ │ ├── Float.ts │ │ │ ├── Int.ts │ │ │ ├── String.ts │ │ │ ├── Vector.ts │ │ │ └── index.ts │ └── index.ts ├── session │ ├── Auth.ts │ ├── Session.ts │ ├── index.ts │ └── internals │ │ ├── DataCenter.ts │ │ ├── MsgFactory.ts │ │ ├── MsgId.ts │ │ └── SeqNo.ts └── storage │ ├── Abstract.ts │ ├── Session.ts │ ├── StringSession.ts │ └── index.ts ├── tsconfig.json └── yarn.lock /.editorconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hamidreza01/core/HEAD/.editorconfig -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hamidreza01/core/HEAD/.gitattributes -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hamidreza01/core/HEAD/.gitignore -------------------------------------------------------------------------------- /.prettierignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hamidreza01/core/HEAD/.prettierignore -------------------------------------------------------------------------------- /.yarn/releases/yarn-3.2.1.cjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hamidreza01/core/HEAD/.yarn/releases/yarn-3.2.1.cjs -------------------------------------------------------------------------------- /.yarnrc.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hamidreza01/core/HEAD/.yarnrc.yml -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hamidreza01/core/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hamidreza01/core/HEAD/README.md -------------------------------------------------------------------------------- /generator/api/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hamidreza01/core/HEAD/generator/api/index.js -------------------------------------------------------------------------------- /generator/api/source/api.tl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hamidreza01/core/HEAD/generator/api/source/api.tl -------------------------------------------------------------------------------- /generator/api/source/mtproto.tl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hamidreza01/core/HEAD/generator/api/source/mtproto.tl -------------------------------------------------------------------------------- /generator/api/template/allTlObject.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hamidreza01/core/HEAD/generator/api/template/allTlObject.txt -------------------------------------------------------------------------------- /generator/api/template/combinator.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hamidreza01/core/HEAD/generator/api/template/combinator.txt -------------------------------------------------------------------------------- /generator/api/template/namespace.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hamidreza01/core/HEAD/generator/api/template/namespace.txt -------------------------------------------------------------------------------- /generator/error/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hamidreza01/core/HEAD/generator/error/index.js -------------------------------------------------------------------------------- /generator/error/source/303_SEE_OTHER.tsv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hamidreza01/core/HEAD/generator/error/source/303_SEE_OTHER.tsv -------------------------------------------------------------------------------- /generator/error/source/400_BAD_REQUEST.tsv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hamidreza01/core/HEAD/generator/error/source/400_BAD_REQUEST.tsv -------------------------------------------------------------------------------- /generator/error/source/401_UNAUTHORIZED.tsv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hamidreza01/core/HEAD/generator/error/source/401_UNAUTHORIZED.tsv -------------------------------------------------------------------------------- /generator/error/source/403_FORBIDDEN.tsv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hamidreza01/core/HEAD/generator/error/source/403_FORBIDDEN.tsv -------------------------------------------------------------------------------- /generator/error/source/406_NOT_ACCEPTABLE.tsv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hamidreza01/core/HEAD/generator/error/source/406_NOT_ACCEPTABLE.tsv -------------------------------------------------------------------------------- /generator/error/source/420_FLOOD.tsv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hamidreza01/core/HEAD/generator/error/source/420_FLOOD.tsv -------------------------------------------------------------------------------- /generator/error/source/500_INTERNAL_SERVER_ERROR.tsv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hamidreza01/core/HEAD/generator/error/source/500_INTERNAL_SERVER_ERROR.tsv -------------------------------------------------------------------------------- /generator/error/source/503_SERVICE_UNAVAILABLE.tsv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hamidreza01/core/HEAD/generator/error/source/503_SERVICE_UNAVAILABLE.tsv -------------------------------------------------------------------------------- /generator/error/template/all.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hamidreza01/core/HEAD/generator/error/template/all.txt -------------------------------------------------------------------------------- /generator/error/template/constructor.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hamidreza01/core/HEAD/generator/error/template/constructor.txt -------------------------------------------------------------------------------- /generator/error/template/extends.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hamidreza01/core/HEAD/generator/error/template/extends.txt -------------------------------------------------------------------------------- /generator/error/template/index.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hamidreza01/core/HEAD/generator/error/template/index.txt -------------------------------------------------------------------------------- /generator/license/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hamidreza01/core/HEAD/generator/license/index.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hamidreza01/core/HEAD/package.json -------------------------------------------------------------------------------- /prettier.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hamidreza01/core/HEAD/prettier.config.js -------------------------------------------------------------------------------- /src/Client.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hamidreza01/core/HEAD/src/Client.ts -------------------------------------------------------------------------------- /src/Logger.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hamidreza01/core/HEAD/src/Logger.ts -------------------------------------------------------------------------------- /src/Version.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hamidreza01/core/HEAD/src/Version.ts -------------------------------------------------------------------------------- /src/connection/TCP/TCPAbridged.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hamidreza01/core/HEAD/src/connection/TCP/TCPAbridged.ts -------------------------------------------------------------------------------- /src/connection/TCP/TCPAbridgedO.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hamidreza01/core/HEAD/src/connection/TCP/TCPAbridgedO.ts -------------------------------------------------------------------------------- /src/connection/TCP/TCPFull.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hamidreza01/core/HEAD/src/connection/TCP/TCPFull.ts -------------------------------------------------------------------------------- /src/connection/TCP/TCPIntermediate.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hamidreza01/core/HEAD/src/connection/TCP/TCPIntermediate.ts -------------------------------------------------------------------------------- /src/connection/TCP/TCPIntermediateO.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hamidreza01/core/HEAD/src/connection/TCP/TCPIntermediateO.ts -------------------------------------------------------------------------------- /src/connection/TCP/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hamidreza01/core/HEAD/src/connection/TCP/index.ts -------------------------------------------------------------------------------- /src/connection/TCP/tcp.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hamidreza01/core/HEAD/src/connection/TCP/tcp.ts -------------------------------------------------------------------------------- /src/connection/connection.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hamidreza01/core/HEAD/src/connection/connection.ts -------------------------------------------------------------------------------- /src/connection/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hamidreza01/core/HEAD/src/connection/index.ts -------------------------------------------------------------------------------- /src/connection/webSocket.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hamidreza01/core/HEAD/src/connection/webSocket.ts -------------------------------------------------------------------------------- /src/crypto/Aes.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hamidreza01/core/HEAD/src/crypto/Aes.ts -------------------------------------------------------------------------------- /src/crypto/Mtproto.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hamidreza01/core/HEAD/src/crypto/Mtproto.ts -------------------------------------------------------------------------------- /src/crypto/Password.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hamidreza01/core/HEAD/src/crypto/Password.ts -------------------------------------------------------------------------------- /src/crypto/Prime.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hamidreza01/core/HEAD/src/crypto/Prime.ts -------------------------------------------------------------------------------- /src/crypto/RSA.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hamidreza01/core/HEAD/src/crypto/RSA.ts -------------------------------------------------------------------------------- /src/crypto/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hamidreza01/core/HEAD/src/crypto/index.ts -------------------------------------------------------------------------------- /src/errors/RpcError.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hamidreza01/core/HEAD/src/errors/RpcError.ts -------------------------------------------------------------------------------- /src/errors/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hamidreza01/core/HEAD/src/errors/index.ts -------------------------------------------------------------------------------- /src/helpers.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hamidreza01/core/HEAD/src/helpers.ts -------------------------------------------------------------------------------- /src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hamidreza01/core/HEAD/src/index.ts -------------------------------------------------------------------------------- /src/raw/core/BytesIO.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hamidreza01/core/HEAD/src/raw/core/BytesIO.ts -------------------------------------------------------------------------------- /src/raw/core/GzipPacked.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hamidreza01/core/HEAD/src/raw/core/GzipPacked.ts -------------------------------------------------------------------------------- /src/raw/core/Message.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hamidreza01/core/HEAD/src/raw/core/Message.ts -------------------------------------------------------------------------------- /src/raw/core/MsgContainer.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hamidreza01/core/HEAD/src/raw/core/MsgContainer.ts -------------------------------------------------------------------------------- /src/raw/core/TLObject.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hamidreza01/core/HEAD/src/raw/core/TLObject.ts -------------------------------------------------------------------------------- /src/raw/core/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hamidreza01/core/HEAD/src/raw/core/index.ts -------------------------------------------------------------------------------- /src/raw/core/primitive/Bool.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hamidreza01/core/HEAD/src/raw/core/primitive/Bool.ts -------------------------------------------------------------------------------- /src/raw/core/primitive/Bytes.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hamidreza01/core/HEAD/src/raw/core/primitive/Bytes.ts -------------------------------------------------------------------------------- /src/raw/core/primitive/Double.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hamidreza01/core/HEAD/src/raw/core/primitive/Double.ts -------------------------------------------------------------------------------- /src/raw/core/primitive/Float.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hamidreza01/core/HEAD/src/raw/core/primitive/Float.ts -------------------------------------------------------------------------------- /src/raw/core/primitive/Int.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hamidreza01/core/HEAD/src/raw/core/primitive/Int.ts -------------------------------------------------------------------------------- /src/raw/core/primitive/String.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hamidreza01/core/HEAD/src/raw/core/primitive/String.ts -------------------------------------------------------------------------------- /src/raw/core/primitive/Vector.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hamidreza01/core/HEAD/src/raw/core/primitive/Vector.ts -------------------------------------------------------------------------------- /src/raw/core/primitive/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hamidreza01/core/HEAD/src/raw/core/primitive/index.ts -------------------------------------------------------------------------------- /src/raw/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hamidreza01/core/HEAD/src/raw/index.ts -------------------------------------------------------------------------------- /src/session/Auth.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hamidreza01/core/HEAD/src/session/Auth.ts -------------------------------------------------------------------------------- /src/session/Session.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hamidreza01/core/HEAD/src/session/Session.ts -------------------------------------------------------------------------------- /src/session/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hamidreza01/core/HEAD/src/session/index.ts -------------------------------------------------------------------------------- /src/session/internals/DataCenter.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hamidreza01/core/HEAD/src/session/internals/DataCenter.ts -------------------------------------------------------------------------------- /src/session/internals/MsgFactory.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hamidreza01/core/HEAD/src/session/internals/MsgFactory.ts -------------------------------------------------------------------------------- /src/session/internals/MsgId.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hamidreza01/core/HEAD/src/session/internals/MsgId.ts -------------------------------------------------------------------------------- /src/session/internals/SeqNo.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hamidreza01/core/HEAD/src/session/internals/SeqNo.ts -------------------------------------------------------------------------------- /src/storage/Abstract.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hamidreza01/core/HEAD/src/storage/Abstract.ts -------------------------------------------------------------------------------- /src/storage/Session.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hamidreza01/core/HEAD/src/storage/Session.ts -------------------------------------------------------------------------------- /src/storage/StringSession.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hamidreza01/core/HEAD/src/storage/StringSession.ts -------------------------------------------------------------------------------- /src/storage/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hamidreza01/core/HEAD/src/storage/index.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hamidreza01/core/HEAD/tsconfig.json -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/hamidreza01/core/HEAD/yarn.lock --------------------------------------------------------------------------------