Another Telegram Userbot based on Telethon
#include <std/disclaimer.h>
/*
* Your Telegram account may get banned.
* I am not responsible for any improper use of this bot
* This bot is intended for the purpose of having fun with memes,
* as well as efficiently managing groups.
* You ended up spamming groups, getting reported left and right,
* and you ended up in a Finale Battle with Telegram and at the end
* Telegram Team deleted your account?
* And after that, then you pointed your fingers at us
* for getting your acoount deleted?
* I will be rolling on the floor laughing at you.
*/
A modular Telegram Userbot running on Python3 with sqlalchemy database.
based on ProjectBish Userbot
1. Required Variable name and value
API_KEY
# Get this value from Telegram.org.API_HASH
# Get this value from Telegram.org.BOTLOG
# Set to False
to disable group logging. (Default True
)
BOTLOG_CHATID
# Log chat id. Set it to 0
if BOTLOG = False
and/or LOGSPAMMER = False
.HEROKU_API_KEY
# Get your Heroku API from Heroku Account Settings.HEROKU_APP_NAME
# Your Heroku app name which are deployed as userbot.LOGSPAMMER
# Set this to True
in case you want the error logs to be stored in the userbot log group. (requires a valid BOTLOG_CHATID
to be set).STRING_SESSION
# Get this value by running [python3 string_session.py] in Termux or local system.TMP_DOWNLOAD_DIRECTORY
# This variable for Download directory for many modules (GDrive, .download etc..).2. Non Mandatory Variable Name. [Recommended to fill this]
ALIVE_NAME
# Name to show in .alive message.ALIVE_LOGO
# Show Image/Logo in .alive message. Use telegra.ph or any direct link image.ANTI_SPAMBOT
# Kick spambots from groups after they join. (Requires admin permissions in group) fill this with True
or False
ANTI_SPAMBOT_SHOUT
# Fill this value as false. if you're want Report spambots to @admins in groups after they join, just in case when you don't have admin powers to kick that shit by yourself.BIO_PREFIX
# Prefix for Last.FM Module Bio.COUNTRY
# Your Country to be used in the .time and .date commands.CLEAN_WELCOME
# When a new person joins, the old welcome message is deleted, Set this to True
or False
.CONSOLE_LOGGER_VERBOSE
# If you need verbosity on the console logging, set this True
or False
.DEEZER_ARL_TOKEN
# Your DEEZER ARL TOKEN. If you don't know this, leave it blank.DEFAULT_BIO
# Default you profile bio.G_DRIVE_DATA
# Your client_secret.json.G_DRIVE_INDEX_URL
# Your Cloudflare Google Drive Index URL.GENIUS_ACCESS_TOKEN
# Client Access Token from Genius site.LASTFM_API
# API Key for Last.FM module. Get one from Last.FM site, Leave this blank if you won't use last.fm module.LASTFM_SECRET
# SECRET Key for Last.FM module. Get one from Last.FM site, Leave this blank if you won't use last.fm module.LASTFM_PASSWORD
# Your last.fm password. Leave this blank if you won't use last.fm module.OPEN_WEATHER_MAP_APPID
# Get your own API key from Open Weather Map site. Leave it blank if you won't use this.OCR_SPACE_API_KEY
# OCR API Key for .ocr command. Get one from OCR Space site.PM_AUTO_BAN
# PM shield if you won't any user spam your PM. Set this True
or False
.REM_BG_API_KEY
# API Key for .rbg command. Get one from remove.bg.TZ_NUMBER
# Fill 1
as a default value, Or in your country has multiple time zones. Just change the value to any time zones.TERM_ALIAS
# Display user for .term command.UPSTREAM_REPO_URL
# In case you're maintaining a fork repo, fill this with your fork repo url. if not, just leave this blank.USR_TOKEN_UPTOBOX
# Uptobox API for uptobox direct link. Read this (Required premium uptobox account).WEATHER_DEFCITY
# Set the default city for the userbot's weather module.Heroku (GitHub Actions)
HEROKU_API
. Fill your Heroku api key
HEROKU_APP
. Fill your Heroku app name. This name should only contain lowercase letters, numbers, and dashes.
HEROKU_REGION
. Fill us
or en
HEROKU_EMAIL
. Your heroku emailHeroku Container build and push
Then Click Run Workflow from master branch [example pict]. Wait process finish, if you got some errors while run workflow You can ask in SUPPORT GROUP
Using "Bare hands", using Git and Python3 -- on (Linux, macOS, and Android [via Termux])
cd
(or chdir
, anti bloat guy) to itvirtualenv
installed on the system)virtualenv venv
. venv/bin/activate
pip3 install -r ./requirements.txt
sample_config.env
and save it as config.env
REQUIRED %%
values, or else the bot will not runbash ./exec.sh
bash ./exec.sh --help
tells youDocker
cd
(or chdir
, anti bloat guy) to itsample_config.env
and save it as config.env
DATABASE_URL
to postgresql://USERNAME:PASSWORD@db:5432/weebproject
USERNAME
and PASSWORD
too in docker-compose.yml
REQUIRED %%
values, or else the bot will not rundocker-compose up
and everyone that makes this userbot awesome :D
Licensed under Raphielscape Public License - Version 1.d, February 2020