Giter Club home page Giter Club logo

server_telegram_bot's Introduction

Server Bot

a Telegram bot that can provide us manage our server

Installation Guides

Prerequisites

Python 3.6 or higher installed on your system.

sudo apt update
sudo apt install python3 python3-pip
sudo apt install python3-venv
  • Create a telegram bot on BotFather by sending /newbot command.

Create a Virtual Environment (Optional)

python -m venv myenv
source myenv/bin/activate

Install Required Packages

pip install python-telegram-bot

Configure

cp config.json_template config.json
  • config.json
    • [TOKEN]: token that we got from BotFather
    • [authorized_users]: list of user that can utilize our bot

Run the Bot

python server.py

Run Bot as a Service

Run your bot as a service using PM2

Install PM2

npm install pm2 -g

Start Bot with PM2

pm2 start server.py --name server_telegram_bot

If the service initialized you can controll it with PM2

pm2 start server_telegram_bot
pm2 stop server_telegram_bot
pm2 restart server_telegram_bot

Save the Process List & Startup

pm2 save
pm2 startup

Support This Project

If you find this project useful and would like to support its development, you can make a donation using Bitcoin. Your contribution will be greatly appreciated.

Bitcoin Address: 1DukhqTeBJLKrhZBKnC4gFFWgTNLt5CU7o

Donating with Bitcoin

To donate with Bitcoin, you can use any Bitcoin wallet of your choice. Here are the steps:

1. Open your Bitcoin wallet.
2. Select the option to send Bitcoin.
3. Enter the amount you wish to donate.
4. In the recipient field, paste the Bitcoin address above (`1DukhqTeBJLKrhZBKnC4gFFWgTNLt5CU7o`).
5. Double-check the address to ensure it's correct.
6. Confirm the transaction.

Your donation will help us continue to improve and maintain this project. Thank you for your support!

server_telegram_bot's People

Contributors

heathscliff334 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.