Skip to content

💫 ᴘʙx 2.0 ᴜsᴇʀʙᴏᴛ❤️‍🩹 ɴᴏ ʟᴀɢ ғᴀsᴛ & sᴍᴏᴏᴛʜ 💸 ʙᴏᴛ ᴡᴏʀᴋ ᴏɴ ᴘʏʀᴏɢʀᴀᴍ 🦋 ᴍᴀᴅᴇ ʙʏ 🕊️ ʙᴀᴅ ᴍᴜɴᴅᴀ ❤️

License

Notifications You must be signed in to change notification settings

Badhacker98/PBX_2.0

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🕊️⃝‌ᴘʙx ❤️ᥫ᭡፝֟፝֟ 2.0

Badhacker98

😈 Telegram Bot on Steroids!

ᴀ sᴍᴏᴏᴛʜ ☆ ғᴀsᴛ ᴛᴇʟᴇɢʀᴀᴍ ᴜsᴇʀʙᴏᴛ ☆ ᴀᴅɴᴀᴄᴇ ғᴇᴀᴛᴜᴇʀs


GitHub forks GitHub Repo stars

Maintenance GitHub license

Telegram Group Telegram Channel


Deploying PBXBOT 2.0 on Heroku

Follow these 4 straightforward steps to deploy PbxBot on Heroku:

  1. Fork & Star this Repo:

    Begin by forking and starring this repository on GitHub.

  2. Heroku Account Login:

    Ensure you are logged into your Heroku account before proceeding.

  3. Click "Deploy to Heroku":

    Find the "Deploy to Heroku" button below, and click it, but make sure you are deploying from your fork.

  4. Fill Required Variables:

    On the deployment page, you'll find necessary variables to be filled out.

That's it! You've successfully deployed Pbx on Heroku. Now scale dynos and start the bot!


Deploying PBXBOT 2.0 on Linux

Pbxbot 2.0 can be deployed on any Linux VPS and terminal.

  1. Update Packages:

    sudo apt update && sudo apt upgrade -y
  2. Install required packages:

    sudo apt install --no-install-recommends -y python3 python3-dev python3-pip python3-virtualenv git mediainfo nano ffmpeg unzip tmux
  3. Edit Config Variables:

    cp example.env .env && vi .env

    Now press 'i' on your keyboard to start editing the .env file.

    Now fill all the env mentioned in the file.

    To save the file press 'Esc' button and write ':wq' using your keyboard and press 'Enter'

  4. Install Requirements:

    Create an virtualenv and source it.

    python3 -m virtualenv venv && source venv/bin/activate

    Now install requirements but make sure you're in (venv)

    pip3 install -U -r requirements.txt
  5. Start the Bot:

    Start a sub-terminal using tmux

    tmux new-session -s PBXBOT2.0

    Now start the bot

    ./start.sh

    Not press 'Ctrl + B' then 'D' to detatch from tmux and let your bot run in background.

That's it! You've successfully deployed Pbxbot 2.0 on a Linux VPS in 6 easy steps.


Config Variables

  • API_HASH : Get this value from my.telegram.org

  • API_ID : Get this value from my.telegram.org

  • BOT_TOKEN : Get this value from @Botfather

  • DATABASE_URL : Get this value from mongo.db

  • LOGGER_ID : A group/channel id to use as a logger chat.

  • OWNER_ID : The owner of bot. Only single userid is supported.

More config details coming soon with updated documentations


License

PbxBot License

Project PbxBot is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/.



About

💫 ᴘʙx 2.0 ᴜsᴇʀʙᴏᴛ❤️‍🩹 ɴᴏ ʟᴀɢ ғᴀsᴛ & sᴍᴏᴏᴛʜ 💸 ʙᴏᴛ ᴡᴏʀᴋ ᴏɴ ᴘʏʀᴏɢʀᴀᴍ 🦋 ᴍᴀᴅᴇ ʙʏ 🕊️ ʙᴀᴅ ᴍᴜɴᴅᴀ ❤️

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published