Userbot telegram python github

Saved searches

Use saved searches to filter your results more quickly

You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.

A simple Telegram userbot based on Telethon

License

TgCatUB/catuserbot

This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?

Читайте также:  Python qt button connect

Sign In Required

Please sign in to use Codespaces.

Launching GitHub Desktop

If nothing happens, download GitHub Desktop and try again.

Launching GitHub Desktop

If nothing happens, download GitHub Desktop and try again.

Launching Xcode

If nothing happens, download Xcode and try again.

Launching Visual Studio Code

Your codespace will open once ready.

There was a problem preparing your codespace, please try again.

Latest commit

Git stats

Files

Failed to load latest commit information.

README.md

A simple Telegram userbot based on Telethon . catuserbot logo Open Source Love

 YOU ARE FOREWARNED Your Telegram account may get banned. Catuserbot or we are not responsible for your account, This bot is intended for the purpose of having fun with some fun commands and group management with some helpfull commands. If you ended up spamming groups, getting reported left and right, and you ended up in being fight with Telegram and at the end Telegram Team deleted your account. DON'T BLAME US. No personal support will be provided / We won't spoon feed you. If you need help ask in our support group and we or our friends will try to help you. Thanks for using our bot 😺 
  • Special thanks to LonamiWebs for Telethon library.
  • To all devs of these Userbots
  • Finally to all contributors of Catuserbot

Источник

Saved searches

Use saved searches to filter your results more quickly

You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.

License

ritik-gupta/Telegram-UserBotPython

This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?

Sign In Required

Please sign in to use Codespaces.

Launching GitHub Desktop

If nothing happens, download GitHub Desktop and try again.

Launching GitHub Desktop

If nothing happens, download GitHub Desktop and try again.

Launching Xcode

If nothing happens, download Xcode and try again.

Launching Visual Studio Code

Your codespace will open once ready.

There was a problem preparing your codespace, please try again.

Latest commit

Git stats

Files

Failed to load latest commit information.

README.md

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.

Get your api-id(API_KEY in my code), API_HASH from my.telegram.org.

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.
  • Connect your git to heroku.
  • Add API_KEY and API_HASH in CONFIG VARS.
  • Deploy.
  • Clone my repo: `git clone https://github.com/ritik-gupta/Telegram-UserBotPython
  • Install the necessary dependencies by moving to the project directory and running: pip3 install -r requirements.txt
  • Add your API_KEY and API_HASH: export API_HASH=your-api-hash and export API_KEY=your-api-id
  • Start the userbot: python3 app.py
  • .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 only to english
  • .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 you
  • .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 for 2d, if ‘n’ messages exceeded
  • .asmoff : Turns off the Anti-Spam Handler
  • .term command : Executes a terminal command(Linux if heroku)
  • .bigspam : For huge spams like 1k

Clone this and try to add features to it, make pull requests to merge it 😉

Источник

Saved searches

Use saved searches to filter your results more quickly

You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.

Telegram Userbot built with Pyrogram

License

athphane/userbot

This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?

Sign In Required

Please sign in to use Codespaces.

Launching GitHub Desktop

If nothing happens, download GitHub Desktop and try again.

Launching GitHub Desktop

If nothing happens, download GitHub Desktop and try again.

Launching Xcode

If nothing happens, download Xcode and try again.

Launching Visual Studio Code

Your codespace will open once ready.

There was a problem preparing your codespace, please try again.

Latest commit

Git stats

Files

Failed to load latest commit information.

README.md

This repository contains the source code of a Telegram Userbot and the instructions for running a copy yourself. Beside its main purpose, the bot is featuring Pyrogram Asyncio and Smart Plugins; feel free to explore the source code to learn more about these topics.

I assume you will read this whole README.md file before continuing.

You’re gonna need to get the following programs and services either installed on your server or signed up for. You must do all. It is a cardinal sin if you don’t.

  • Python 3.10 (requirements were generated for 3.10. Python 3.8 is supported from the looks of it.)
  • virtualenv installed so that the packages don’t interfere with other system packages.
  • MongoDB on your server or a free server from MongoDB Atlas. (I recommend Atlas as I used it during development with no issues.)
  • carbon-now-cli on your server too generate code images for the carbon.py module. I use this CLI tool cause I don’t know and couldn’t get selenium and chromedriver to work nicely on my server/code. I’ll be nice and even give you the command to install this. I assume you already have NPM installed.
Windows: npm install -g carbon-now-cli Linux: sudo npm install -g carbon-now-cli --unsafe-perm=true --allow-root MacOS: I assume almost the same as linux ¯\_(ツ)_/¯ 

Installation and Deployment

git clone https://github.com/athphane/userbot.git cd userbot virtualenv venv source venv/bin/activate pip install -r requirements.txt python -m userbot

To get the Spotify commands working on the Userbot, you need to get a CLIENT_ID and CLIENT_SECRET form the Spotify Developer Portal and add them into your userbot.ini file.

On the Spotify developer portal, make sure to set your application Redirect URI to ‘http://localhost:8888/callback’.

Now is a good time Then go ahead and run the command python spotify.py in the projects root directory.

This will create a file called .cache-yourusername . You need to transfer this file to the project root of the server that will be running your userbot. This is a one time setup.

  • .restart command do not work on Termux as psutils is not supported on Android.
    CTRL+C, run git pull and python -m userbot to update bot on termux.
  • Dan for his Pyrogram Library
  • Colin Shark for his PyroBot which helped with most of the useful functions used.
  • The people at MyPaperPlane for their Telegram-UserBot that gave a ton of ideas on how and what modules to include in this userbot.
  • Baivaru for the ton of help that got me this far into making this repo.

Made with love from the Maldives ❤

Источник

Saved searches

Use saved searches to filter your results more quickly

You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.

TG-UserBot / TG-UserBot Public archive

A modular Telegram UserBot.

License

TG-UserBot/TG-UserBot

This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?

Sign In Required

Please sign in to use Codespaces.

Launching GitHub Desktop

If nothing happens, download GitHub Desktop and try again.

Launching GitHub Desktop

If nothing happens, download GitHub Desktop and try again.

Launching Xcode

If nothing happens, download Xcode and try again.

Launching Visual Studio Code

Your codespace will open once ready.

There was a problem preparing your codespace, please try again.

Latest commit

Git stats

Files

Failed to load latest commit information.

README.md

A modular Telegram UserBot for Python which uses the Telethon library. It is made to help you do your usual client tasks without the hassle and also has some additional useful features.

Heroku guide is available here.

Incase your Redis session renders invalid, stop your dyno & run the userbot locally again, it will delete your old session from Redis. Then re-run the userbot again, login and exit it and start your dyno on Heroku.

  • Python 3.7.3 or above.
  • A Telegram API key (API ID and hash).
  • Redis Endpoint and Password from Redis Labs
    • Redis session is optional but needed if you are planning to use AFK and PM-Permit.
    $ git clone https://github.com/kandnub/TG-UserBot/

    Change the current directory to the cloned one.

    Edit the config either using Nano/Vim or a Text Editor and put your ENV Vars in the same.

    $ nano sample_config.ini $ mv sample_config.ini config.ini

    Install all the requirements using pip.

    $ pip3 install --user -r requirements.txt

    Run the UserBot once you have a valid configuration file.

    • TG-UserBot Documentations: Official userbot documentations. Here you can find all the help you need to get the bot up and running and can also find all the documented commands.
      • Regular maintenance of docs is not possible thus some new commands may be missing from the same.

      Either submit pull requests or create an issue on here.

      Источник

Оцените статью