Monitor your bots' uptime and CPU usage effortlessly with this Telegram bot. It refreshes automatically, ensuring your bots are always active. Runs 24/7 for your convenience.
API_ID: Telegram API_ID, obtain it from my.telegram.org/appsAPI_HASH: Telegram API_ID, obtain it from my.telegram.org/appsSESSION_STRING: A valid Pyrogram session string, get it from @MaybexSessionBotBOT_TOKEN: A valid bot token, obtain it from @BotFatherBOT_LIST: Your bot username list without '@' (Example: Maybexsessionbot MaybexHackBot)CHANNEL_OR_GROUP_ID: Your channel's or group's Telegram id (Example: -1001246808642)MESSAGE_ID: Telegram id of message from your channel or group (Example: 10)OWNER_ID: Owner id (Example: 1357907531 2468097531 3579864213)TIME_ZONE: Your time zone (Example: Asia/Kolkata)
- Install using pip3 in your bot (Pyrogram or Telethon):
For Pyrogram
pip3 install git+https://github.com/maybebots/bot-status.git@pyro
For Telethon
pip3 install git+https://github.com/maybebots/bot-status.git@tele
- Import the Client Class:
For Pyrogram
from PyroStatus import PyroClientFor Telethon
from TeleStatus import TeleClient- Replace the normal Client:
For Pyrogram
app = PyroClient(
name="bot",
api_id=69696,
api_hash="",
bot_token=""
)For Telethon
app = TeleClient(
"bot",
api_id,
api_hash,
).start(bot_token="")- Deploy this repo!
- Add this code snippet at the beginning of your
__init__.pyfile:
import time
start_time = time.time()-
Copy the provided code into your repository (in plugins directory or wherever your plugins exist).
-
Add the bot to your channel and make it admin.
To deploy on Heroku:
-
Fork this repository.
-
Click the Deploy button below:
To deploy on a VPS:
- Update and upgrade your system packages:
sudo apt-get update && sudo apt-get upgrade -y
- Clone the repository and navigate to the project directory:
git clone https://github.com/maybebots/Bot-Status && cd Bot-Status
- Install the required packages:
pip3 install -U -r requirements.txt
- Create .env using example.env:
cp example.env .env
-
Open the .env file using vi .env.
-
Edit the vars by pressing I on the keyboard.
-
After editing, save the file using ctrl + c then :wq.
-
Run the script using Python 3:
python3 main.py