### Bot Deployment and Setup Source: https://github.com/sanjit-sinha/telegrambot-boilerplate/blob/main/README.md Commands for setting up the server environment by updating packages, installing Python pip, and cloning the repository to install project dependencies. ```bash sudo apt-get update && sudo apt-get upgrade -y sudo apt install python3-pip -y sudo pip3 install -U pip ``` ```bash git clone https://github.com/sanjit-sinha/Telegram-Bot-Boilerplate && cd Telegram-Bot-Boilerplate pip3 install -U -r requirements.txt ``` -------------------------------- ### Starting the Bot Source: https://github.com/sanjit-sinha/telegrambot-boilerplate/blob/main/README.md Instructions on how to start the Telegram bot using bash or Python. ```Bash bash start ``` ```Python python3 -m TelegramBot ``` -------------------------------- ### Project Dependencies Source: https://github.com/sanjit-sinha/telegrambot-boilerplate/blob/main/requirements.txt This section lists the Python packages required for the project, along with their version constraints. These dependencies are typically installed using pip. ```Python pyrate-limiter==2.10.0 Pyrogram>=2.0.59 TgCrypto==1.2.4 python-dotenv speedtest-cli telegraph[aio] cachetools aiofiles psutil httpx motor bs4 uvloop pillow ``` -------------------------------- ### Python Plugin Example Source: https://github.com/sanjit-sinha/telegrambot-boilerplate/blob/main/README.md Demonstrates a basic structure for building a Telegram bot plugin using Pyrogram. It includes a message handler for 'hello' and 'hi' commands, decorated with a rate limiter. ```python from TelegramBot.helpers.decorators import ratelimiter from pyrogram import Client, filters from pyrogram.types import Message @Client.on_message(filters.command(["hello", "hi"])) @ratelimiter async def hello(client: Client, message: Message): """ simple plugin to demonstrate in readme. """ return await message.reply_text("world") ``` -------------------------------- ### Running Bot 24/7 with Tmux Source: https://github.com/sanjit-sinha/telegrambot-boilerplate/blob/main/README.md Steps to install tmux and run the bot within a tmux session to keep it running even after logging out. ```Bash sudo apt install tmux -y tmux && bash start ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.