Skip to content

v0.0.1

Choose a tag to compare

@github-actions github-actions released this 15 Feb 22:08
· 21 commits to main since this release

feat: MVP proposal of @gramio/test

feat: add chat support, API interception, and user interaction methodsAdd ChatObject with members tracking, CallbackQueryObject for inline keyboard interactions, API call interception and mocking, and user methods for sending messages, joining/leaving chats, and clicking inline buttons. Extend MessageObject with chat() method and add comprehensive test coverage for all new features.

feat: add comprehensive documentation with API reference and usage examplesAdd detailed README with installation instructions, quick start guide, and complete API documentation covering TelegramTestEnvironment, UserObject methods (sendMessage, join, leave, click), ChatObject state tracking, MessageObject/CallbackQueryObject builders, and API call inspection examples.

feat: add API mocking with onApi/offApi and error simulation supportAdd env.onApi() for overriding API responses with static values or dynamic handlers, env.offApi() for resetting overrides, and apiError() helper for simulating TelegramError responses with proper error codes and parameters. Include comprehensive test coverage for static/dynamic handlers, conditional responses, error simulation with retry_after, and handler reset functionality.
Full Changelog: https://github.com/gramiojs/test/commits/v0.0.1