diff --git a/data/web/blogfork.telegram.org/bots/features.html b/data/web/blogfork.telegram.org/bots/features.html index cec852be00..e63df866eb 100644 --- a/data/web/blogfork.telegram.org/bots/features.html +++ b/data/web/blogfork.telegram.org/bots/features.html @@ -74,6 +74,7 @@
  • Language Support
  • Bot Management @@ -356,6 +357,26 @@ width=44% />

    This mode not only increases user privacy, but also makes the bot more efficient by reducing the number of inputs it needs to process. Users can always see a bot’s current privacy setting in the list of group members.

    +

    Testing your bot

    +

    To quickly test your bot without interfering with its users, you can simply run another instance of your code with a different token. You would then privately interact and run your benchmarks on the bot associated with the new token.

    +
    +

    If you need to share file references across bots, note that the file_id field is tied to a single bot id, so your test instance cannot use a shared file_id database to quickly send media – files must be individually reuploaded.

    +
    +

    Dedicated test environment

    +

    Telegram also offers a dedicated test environment suitable for more advanced testing. Bots and users in this environment generally unlock expedited limits and more flexible restrictions – for example, you can test topics without needing 200 users in your group.

    +

    Creating a bot in the test environment

    +

    The test environment is completely separate from the main environment, so you will need to create a new user account and a new bot with @BotFather.

    +

    To create an account and log in, use either of the following:

    + +

    After logging in, simply create a new bot following the standard procedure and send your requests to the Test Bot API in this format:

    +
    https://api.telegram.org/bot<token>/test/METHOD_NAME
    +
    +

    When working with the test environment, you may use HTTP links without TLS to test your Web Apps.

    +

    Status alerts

    Millions choose Telegram for its speed. To best benefit users, your bot also needs to be responsive. In order to help developers keep their bots in shape, @BotFather will send status alerts if it sees something is wrong.

    We check the number of replies and the request/response conversion rate for popular bots (~300 requests per minute, this value may change in the future). If your bot returns an abnormally low number, you will receive a notification from @BotFather.

    diff --git a/data/web/core.telegram.org/bots/features.html b/data/web/core.telegram.org/bots/features.html index 4368aecc8f..85d39d5a35 100644 --- a/data/web/core.telegram.org/bots/features.html +++ b/data/web/core.telegram.org/bots/features.html @@ -74,6 +74,7 @@
  • Language Support
  • Bot Management @@ -356,6 +357,26 @@ width=44% />

    This mode not only increases user privacy, but also makes the bot more efficient by reducing the number of inputs it needs to process. Users can always see a bot’s current privacy setting in the list of group members.

    +

    Testing your bot

    +

    To quickly test your bot without interfering with its users, you can simply run another instance of your code with a different token. You would then privately interact and run your benchmarks on the bot associated with the new token.

    +
    +

    If you need to share file references across bots, note that the file_id field is tied to a single bot id, so your test instance cannot use a shared file_id database to quickly send media – files must be individually reuploaded.

    +
    +

    Dedicated test environment

    +

    Telegram also offers a dedicated test environment suitable for more advanced testing. Bots and users in this environment generally unlock expedited limits and more flexible restrictions – for example, you can test topics without needing 200 users in your group.

    +

    Creating a bot in the test environment

    +

    The test environment is completely separate from the main environment, so you will need to create a new user account and a new bot with @BotFather.

    +

    To create an account and log in, use either of the following:

    + +

    After logging in, simply create a new bot following the standard procedure and send your requests to the Test Bot API in this format:

    +
    https://api.telegram.org/bot<token>/test/METHOD_NAME
    +
    +

    When working with the test environment, you may use HTTP links without TLS to test your Web Apps.

    +

    Status alerts

    Millions choose Telegram for its speed. To best benefit users, your bot also needs to be responsive. In order to help developers keep their bots in shape, @BotFather will send status alerts if it sees something is wrong.

    We check the number of replies and the request/response conversion rate for popular bots (~300 requests per minute, this value may change in the future). If your bot returns an abnormally low number, you will receive a notification from @BotFather.