/TG-PMsBot

Primary LanguagePythonMIT LicenseMIT

Telegram PM-Bot

Bot Logo

This Bot can forward Messages between the Owner and other Users of Bot.

Functions of this Bot:

• It can Forward Messages or any Media file.
• It Can be Used to hold Giveaways.
• It acts as a Feedback Bot.
• It can be Used for Announcement with Broadcast feature.
• It can be used to chat with Spam-Reported guys as well.
• Owner can Block/Unblock any User(s).
• Owner can Broadcast Message to all Users.

Deployment

This Bot can be Deployed easily using Dockerfile.

Compulsory Variables

API_ID : Get it from my.telegram.org.

API_HASH : Get it from my.telegram.org.

BOT_TOKEN : Get the bot token from @BotFather.

OWNER_ID : Your Telegram User ID. Get it from @MissRose_Bot.

REDIS_URI : Your Redis Endpoint URI, Get it from redislabs.com.

REDIS_PASSWORD : Your Redis Endpoint Password, Get it from redislabs.com.

Optional Vars

FORCE_SUBSCRIBE : Your Channel/Group id or username. If you don't Want this, Keep this Empty.

TZ : Your TimeZone; Default is Asia/Kolkata.

Deploying on Heroku

Deploy To Heroku

Deploying on VPS

git clone https://github.com/libgnu/TG-PMsBot pmbot
cd pmbot
pip3 install --no-cache-dir -r requirements.txt
cp .env.sample .env
nano .env # fill your credentials here
screen -S pmbot
python3 -m pmbot

• PRESS - CTRL + A then CTRL + D to detach from screen.

Credits and Inspiration