├── .eslintrc.json ├── .github ├── CODEOWNERS └── dependabot.yml ├── .gitignore ├── .npmignore ├── LICENSE ├── docs ├── 01-your-first-bot.md ├── 02-listen-and-respond.md ├── 03-attachments.md ├── 04-keyboard.md └── 05-custom-context.md ├── examples ├── attachments-bot.ts ├── custom-context-bot.ts ├── keyboard-bot.ts └── start-payload-bot.ts ├── package.json ├── readme.md ├── src ├── api.ts ├── bot.ts ├── composer.ts ├── context.ts ├── core │ ├── helpers │ │ ├── attachments.ts │ │ ├── buttons.ts │ │ ├── keyboard.ts │ │ ├── types.ts │ │ └── upload.ts │ └── network │ │ ├── api │ │ ├── base-api.ts │ │ ├── client.ts │ │ ├── error.ts │ │ ├── index.ts │ │ ├── modules │ │ │ ├── bots │ │ │ │ ├── api.ts │ │ │ │ └── types.ts │ │ │ ├── chats │ │ │ │ ├── api.ts │ │ │ │ └── types.ts │ │ │ ├── index.ts │ │ │ ├── messages │ │ │ │ ├── api.ts │ │ │ │ └── types.ts │ │ │ ├── subscriptions │ │ │ │ ├── api.ts │ │ │ │ └── types.ts │ │ │ ├── types.ts │ │ │ └── uploads │ │ │ │ ├── api.ts │ │ │ │ └── types.ts │ │ ├── raw-api.ts │ │ └── types │ │ │ ├── attachment-request.ts │ │ │ ├── attachment.ts │ │ │ ├── bot.ts │ │ │ ├── chat.ts │ │ │ ├── common.ts │ │ │ ├── index.ts │ │ │ ├── keyboard.ts │ │ │ ├── markup.ts │ │ │ ├── message.ts │ │ │ ├── subcription.ts │ │ │ ├── uploads.ts │ │ │ └── user.ts │ │ └── polling.ts ├── filters.ts ├── index.ts ├── middleware.ts └── types.ts ├── tsconfig.json └── yarn.lock /.eslintrc.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/max-messenger/max-bot-api-client-ts/HEAD/.eslintrc.json -------------------------------------------------------------------------------- /.github/CODEOWNERS: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/max-messenger/max-bot-api-client-ts/HEAD/.github/CODEOWNERS -------------------------------------------------------------------------------- /.github/dependabot.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/max-messenger/max-bot-api-client-ts/HEAD/.github/dependabot.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | dist 3 | 4 | *.log 5 | *.env 6 | 7 | .idea 8 | .DS_Store 9 | -------------------------------------------------------------------------------- /.npmignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/max-messenger/max-bot-api-client-ts/HEAD/.npmignore -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/max-messenger/max-bot-api-client-ts/HEAD/LICENSE -------------------------------------------------------------------------------- /docs/01-your-first-bot.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/max-messenger/max-bot-api-client-ts/HEAD/docs/01-your-first-bot.md -------------------------------------------------------------------------------- /docs/02-listen-and-respond.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/max-messenger/max-bot-api-client-ts/HEAD/docs/02-listen-and-respond.md -------------------------------------------------------------------------------- /docs/03-attachments.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/max-messenger/max-bot-api-client-ts/HEAD/docs/03-attachments.md -------------------------------------------------------------------------------- /docs/04-keyboard.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/max-messenger/max-bot-api-client-ts/HEAD/docs/04-keyboard.md -------------------------------------------------------------------------------- /docs/05-custom-context.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/max-messenger/max-bot-api-client-ts/HEAD/docs/05-custom-context.md -------------------------------------------------------------------------------- /examples/attachments-bot.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/max-messenger/max-bot-api-client-ts/HEAD/examples/attachments-bot.ts -------------------------------------------------------------------------------- /examples/custom-context-bot.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/max-messenger/max-bot-api-client-ts/HEAD/examples/custom-context-bot.ts -------------------------------------------------------------------------------- /examples/keyboard-bot.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/max-messenger/max-bot-api-client-ts/HEAD/examples/keyboard-bot.ts -------------------------------------------------------------------------------- /examples/start-payload-bot.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/max-messenger/max-bot-api-client-ts/HEAD/examples/start-payload-bot.ts -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/max-messenger/max-bot-api-client-ts/HEAD/package.json -------------------------------------------------------------------------------- /readme.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/max-messenger/max-bot-api-client-ts/HEAD/readme.md -------------------------------------------------------------------------------- /src/api.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/max-messenger/max-bot-api-client-ts/HEAD/src/api.ts -------------------------------------------------------------------------------- /src/bot.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/max-messenger/max-bot-api-client-ts/HEAD/src/bot.ts -------------------------------------------------------------------------------- /src/composer.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/max-messenger/max-bot-api-client-ts/HEAD/src/composer.ts -------------------------------------------------------------------------------- /src/context.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/max-messenger/max-bot-api-client-ts/HEAD/src/context.ts -------------------------------------------------------------------------------- /src/core/helpers/attachments.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/max-messenger/max-bot-api-client-ts/HEAD/src/core/helpers/attachments.ts -------------------------------------------------------------------------------- /src/core/helpers/buttons.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/max-messenger/max-bot-api-client-ts/HEAD/src/core/helpers/buttons.ts -------------------------------------------------------------------------------- /src/core/helpers/keyboard.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/max-messenger/max-bot-api-client-ts/HEAD/src/core/helpers/keyboard.ts -------------------------------------------------------------------------------- /src/core/helpers/types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/max-messenger/max-bot-api-client-ts/HEAD/src/core/helpers/types.ts -------------------------------------------------------------------------------- /src/core/helpers/upload.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/max-messenger/max-bot-api-client-ts/HEAD/src/core/helpers/upload.ts -------------------------------------------------------------------------------- /src/core/network/api/base-api.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/max-messenger/max-bot-api-client-ts/HEAD/src/core/network/api/base-api.ts -------------------------------------------------------------------------------- /src/core/network/api/client.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/max-messenger/max-bot-api-client-ts/HEAD/src/core/network/api/client.ts -------------------------------------------------------------------------------- /src/core/network/api/error.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/max-messenger/max-bot-api-client-ts/HEAD/src/core/network/api/error.ts -------------------------------------------------------------------------------- /src/core/network/api/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/max-messenger/max-bot-api-client-ts/HEAD/src/core/network/api/index.ts -------------------------------------------------------------------------------- /src/core/network/api/modules/bots/api.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/max-messenger/max-bot-api-client-ts/HEAD/src/core/network/api/modules/bots/api.ts -------------------------------------------------------------------------------- /src/core/network/api/modules/bots/types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/max-messenger/max-bot-api-client-ts/HEAD/src/core/network/api/modules/bots/types.ts -------------------------------------------------------------------------------- /src/core/network/api/modules/chats/api.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/max-messenger/max-bot-api-client-ts/HEAD/src/core/network/api/modules/chats/api.ts -------------------------------------------------------------------------------- /src/core/network/api/modules/chats/types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/max-messenger/max-bot-api-client-ts/HEAD/src/core/network/api/modules/chats/types.ts -------------------------------------------------------------------------------- /src/core/network/api/modules/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/max-messenger/max-bot-api-client-ts/HEAD/src/core/network/api/modules/index.ts -------------------------------------------------------------------------------- /src/core/network/api/modules/messages/api.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/max-messenger/max-bot-api-client-ts/HEAD/src/core/network/api/modules/messages/api.ts -------------------------------------------------------------------------------- /src/core/network/api/modules/messages/types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/max-messenger/max-bot-api-client-ts/HEAD/src/core/network/api/modules/messages/types.ts -------------------------------------------------------------------------------- /src/core/network/api/modules/subscriptions/api.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/max-messenger/max-bot-api-client-ts/HEAD/src/core/network/api/modules/subscriptions/api.ts -------------------------------------------------------------------------------- /src/core/network/api/modules/subscriptions/types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/max-messenger/max-bot-api-client-ts/HEAD/src/core/network/api/modules/subscriptions/types.ts -------------------------------------------------------------------------------- /src/core/network/api/modules/types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/max-messenger/max-bot-api-client-ts/HEAD/src/core/network/api/modules/types.ts -------------------------------------------------------------------------------- /src/core/network/api/modules/uploads/api.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/max-messenger/max-bot-api-client-ts/HEAD/src/core/network/api/modules/uploads/api.ts -------------------------------------------------------------------------------- /src/core/network/api/modules/uploads/types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/max-messenger/max-bot-api-client-ts/HEAD/src/core/network/api/modules/uploads/types.ts -------------------------------------------------------------------------------- /src/core/network/api/raw-api.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/max-messenger/max-bot-api-client-ts/HEAD/src/core/network/api/raw-api.ts -------------------------------------------------------------------------------- /src/core/network/api/types/attachment-request.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/max-messenger/max-bot-api-client-ts/HEAD/src/core/network/api/types/attachment-request.ts -------------------------------------------------------------------------------- /src/core/network/api/types/attachment.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/max-messenger/max-bot-api-client-ts/HEAD/src/core/network/api/types/attachment.ts -------------------------------------------------------------------------------- /src/core/network/api/types/bot.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/max-messenger/max-bot-api-client-ts/HEAD/src/core/network/api/types/bot.ts -------------------------------------------------------------------------------- /src/core/network/api/types/chat.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/max-messenger/max-bot-api-client-ts/HEAD/src/core/network/api/types/chat.ts -------------------------------------------------------------------------------- /src/core/network/api/types/common.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/max-messenger/max-bot-api-client-ts/HEAD/src/core/network/api/types/common.ts -------------------------------------------------------------------------------- /src/core/network/api/types/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/max-messenger/max-bot-api-client-ts/HEAD/src/core/network/api/types/index.ts -------------------------------------------------------------------------------- /src/core/network/api/types/keyboard.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/max-messenger/max-bot-api-client-ts/HEAD/src/core/network/api/types/keyboard.ts -------------------------------------------------------------------------------- /src/core/network/api/types/markup.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/max-messenger/max-bot-api-client-ts/HEAD/src/core/network/api/types/markup.ts -------------------------------------------------------------------------------- /src/core/network/api/types/message.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/max-messenger/max-bot-api-client-ts/HEAD/src/core/network/api/types/message.ts -------------------------------------------------------------------------------- /src/core/network/api/types/subcription.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/max-messenger/max-bot-api-client-ts/HEAD/src/core/network/api/types/subcription.ts -------------------------------------------------------------------------------- /src/core/network/api/types/uploads.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/max-messenger/max-bot-api-client-ts/HEAD/src/core/network/api/types/uploads.ts -------------------------------------------------------------------------------- /src/core/network/api/types/user.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/max-messenger/max-bot-api-client-ts/HEAD/src/core/network/api/types/user.ts -------------------------------------------------------------------------------- /src/core/network/polling.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/max-messenger/max-bot-api-client-ts/HEAD/src/core/network/polling.ts -------------------------------------------------------------------------------- /src/filters.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/max-messenger/max-bot-api-client-ts/HEAD/src/filters.ts -------------------------------------------------------------------------------- /src/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/max-messenger/max-bot-api-client-ts/HEAD/src/index.ts -------------------------------------------------------------------------------- /src/middleware.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/max-messenger/max-bot-api-client-ts/HEAD/src/middleware.ts -------------------------------------------------------------------------------- /src/types.ts: -------------------------------------------------------------------------------- 1 | export * from './core/network/api/types'; 2 | -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/max-messenger/max-bot-api-client-ts/HEAD/tsconfig.json -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/max-messenger/max-bot-api-client-ts/HEAD/yarn.lock --------------------------------------------------------------------------------