Just coz I'm too lazy, I program it, to make stuff easier. This is a userbot, which is equivalent to a telegram client, and it can run on the cloud too. It needs a linux pc or any unix to run basic commands, or you need to find the workaround yourself :/
Join the news channel if you just want to stay in the loop about new features or announcements.
If you found any bugs or you wanna suggest some features then contact My support group.
Alternatively, find me on telegram!.
-This Readme might go out-of-date at any point, as I push notifications for all updates to my support channel. I recommend subscribing to the channel, for timely updates and fixes.
Get your api-id(API_KEY in my code), API_HASH from my.telegram.org.
Create an empty group, add marie, or any of its clone, find group id, then copy it and this is your LOGGER
Please read through this before cloning. I don't want you get stuck anywhere. This guide can get you running up the userbot, if followed properly
-If you clone/fork this repo please make sure you generate a session file by running app.py on your local pc before deploying it on heroku.
- If you get errors like -->app[worker.1]: telethon.errors.rpcerrorlist.AuthKeyDuplicatedError: An auth key with the same ID was already generated,
- It means your session was banned and needs to be regenerated.
-
Fork my repo.
-
Download/Clone it in your linux PC, then follow instructions on Running on linux(below), this will generate a session_name.session file, which is needed to run your bot, push this file to your git.
-
Push it with the heroku cli
-
Add API_KEY, API_HASH and LOGGER in CONFIG VARS.
-
Deploy.
-
Clone my repo:
git clone https://github.com/baalajimaestro/Telegram-UserBot
-
Install the necessary dependencies by moving to the project directory and running:
pip3 install -r requirements.txt
-
Add your API_KEY, API_HASH and LOGGER:
export API_HASH=your-api-hash
,export API_KEY=your-api-id
andexport LOGGER=your-group-id
-
Start the userbot:
python3 app.py
-----.
stands for any random character, it is made for the ease of the user------
-
.delmsg
: Deletes the last typed message -
.purgeme number
: Deletes last n messages sent by you -
.vapor
: Change the font to an aesthetic font. -
.cp
: CopyPasta, as in SkittlesBot -
.trt
: Google Translator, translates to the language specified by lang -
.thanos
: Bans a person from the group -
.spider
: Mutes a person in the group if you are an admin -
.wizard
: In beta stage, needs all admin rights to work -
.react
: Sends a random ascii emote -
.editme
: Edits the last sent message with the string in the parameter -
.pingme
: Pings your server -
.iamafk
: Sets you as AFK -
.notafk
: Sets you as not AFK, and gives you brief list if who messaged you while you were away -
.ud
: Query urban dictionary -
.google
: Query Google -
.wiki
: Query Wikipedia and get a summary -
.sd
: Send a self-destructing message -
.eval
: Evaluate the given expression -
.fastpurge
: Purge like marie -
.spam number string
: Spams the string n times -
.exec
: Execute a python command -
.help
: Get a link to this readme -
.killme(incoming)
: If your bot senses it, it will reply a funny message, try it out -
.paste string
: Sends the string to hastebin and gets the link -
.asmon n
: Turns on Anti-Spam Handler to mute a person on group until anti-spam is turned off -
.asmoff
: Turns off the Anti-Spam Handler -
.term command
: Executes a terminal command(Linux if heroku) -
.bigspam
: For huge spams like 1k -
.random a,b,c
: Finds random of a,b,c -
.base64 en|decode
: Pretty explains it -
.hash
: Returns the md5 hash -
.filter text reply
: Adds a filter in that group, if text is contained in incoming message, bot replies with the reply -
.nofilter text
: Removes the filter text from the current group -
.save text reply
: It saves reply for the text, can be obtained with #text again. -
.speak
: Unmutes a user -
.get filters
: Fetch all filters set in the userbot in that chat -
.get notes
: Fetch all notes set in the userbot in that chat -
.img text
: Search and fetch first two images from google
Clone this and try to add features to it, make pull requests to merge it ;)