Skip to content

Commit

Permalink
Remove mockEnv note
Browse files Browse the repository at this point in the history
  • Loading branch information
dnischeta committed Aug 1, 2024
1 parent 3605381 commit bef12ee
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,12 +78,6 @@ link (`http://localhost:5173/js-tsdk-template` in this example) in your browser.
It is important to note that some libraries in this template, such as Telegram SDK, are not
intended for use outside of Telegram.

Nevertheless, they appear to function properly. This is because the `src/mockEnv.ts` file, which is
imported in the application's entry point (`src/index.ts`), employs the `mockTelegramEnv` function
to simulate the Telegram environment. This trick convinces the application that it is running in a
Telegram-based environment. Therefore, be cautious not to use this function in production mode
unless you fully understand its implications.

### Run Inside Telegram

Although it is possible to run the application outside of Telegram, it is recommended to develop it
Expand Down

0 comments on commit bef12ee

Please sign in to comment.