bota

Bota - the ultimate Telegram bot hosting built with PHP, powered by NovaGram Library!

View the Project on GitHub Jobians/bota

Errors Handling

We have two types of errors, Bota error (Server error) and Telegram error

Bota Error

This error can be handle in two ways:

  1. By setting your telegram id in the bot setting tab

  2. By creating ! command with the following example code:

    <?php
    // "!" error command example code
    $admin_id = 1350180828;
    $Bot->sendMessage([
     "chat_id" => $admin_id,
     "text" => $error
    ]);
    

    Some pre defined veriable that will be present in ! error command when server error occur:

Telegram Error

This error can only be handled by setting up your telegram id in the bot setting tab.

Setting owner telegram id image

After setting your telegram id, bot will automatically send all telegram errors in your pm only.

Here’s the full list:

These can be treated like the main one.