Giter Site home page Giter Site logo

caligo's Introduction

Caligo

A SelfBot for Telegram made with Python using Pyrogram library. It's highly inspired from pyrobud that writtens in Telethon library. It's the same but different, you know what i mean?

Caligo needs Python 3.9 or newer to run.

Compatibility

Caligo should work with all Linux-based operating systems.

This program tested partially on MacOs M1 and not officially support for windows.

Installation

Caligo uses MongoDB Atlas for it database, you can get it free at https://www.mongodb.com/ and save the uri for use on config and to generate your session.

Obviously you need git, and it should be already installed on major operating systems linux based.

Local

First, clone this Git repository locally: git clone https://github.com/userbotindo/caligo

After that, you can run python3 -m pip install . to install the bot along with the depencies.

Once it's installed, you can choose to invoke it using the caligo command, or run the bot in-place (which is described later in the Usage section). Running it in-place is recommended to allow for automatic updates via Git.

Error: Directory '.' is not installable. File 'setup.py' not found.

This common error is caused by an outdated version of pip. We use the Poetry package manager to make things easier to maintain, which works with pip through PEP-517. This is a relatively new standard, so a newer version of pip is necessary to make it work.

Upgrade to pip 19 to fix this issue: pip3 install -U pip

Using Heroku

Config Gist

  • Go to gist.github.com
  • Create a new gist and make sure it's private/secret
  • Copy the content of sample_config.toml and paste it to your gist
  • Fill the coresponding Name and Value
  • Make sure you name the gist as config.toml
  • Click Create secret gist and copy the link save for later use

Deploying

  • Go to your dashboard
  • Create an empty application then go to the app setting
  • Scroll a bit until you find Buildpacks section
  • Click Add Buildpack and choose Python and then click Save Changes
  • Click Add Buildpack again and put this repo and then click Save Changes
  • Scroll top a bit until you find Reveal Config Vars > Click it
    • Fill CONFIG with the link of your recently created gist
    • Fill GITHUB_REPO with your forked repo link
    • Fill GITHUB_BRANCH with your branch name
  • Go to Deploy tab and connect your github account
  • Choose your forked repo and then click Deploy Branch
  • It should be finished around 1-2 minute(s)
  • Go to Resources tab and turn on the worker

Generating Session

Heroku

Click more on your app page and the click Run console and run this command python3 generate_session.py. Fill the API_ID, API_HASH and MONGODB URI when it asked and wait until it finished and your userbot is ready.

Local

Just run the bot normally.

Configuration

Copy sample_config.toml to config.toml and edit the settings as desired. Each and every setting is documented by the comments above it.

Obtain the API ID and API HASH from Telegram's website. TREAT THESE SECRETS LIKE A PASSWORD!

Obtain the DB_URI from MongoDB. TREAT THIS SECRETS LIKE A PASSWORD!

Configuration must be complete before starting the bot for the first time for it to work properly.

Usage

To start the bot, type python3 main.py or python3 -m caligo if you are running it in-place or use command corresponding to your chosen installation method above.

Support

Feel free to join the official support group on Telegram for help or general discussion regarding the bot. You may also open an issue on GitHub for bugs, suggestions, or anything else relevant to the project.

caligo's People

Contributors

adekmaulana avatar dependabot-preview[bot] avatar dependabot[bot] avatar restyled-commits avatar restyled-io[bot] avatar tomyprs avatar troublescope avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

caligo's Issues

Deepfry built in

Hi, I noticed this user bot uses my deep fryer ;) I don't really mind, but it seems really popular so my server gets a lot of load from all these clients. I can help you build in the deep frying if you want so it doesn't have to call my bot. Thanks

build image failed

Step 30/41 : RUN curl -LJO https://techdro.id/techdroid/aria2-1.35.0-r3.apk
---> Running in a82d9f84d933
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed

0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
curl: (7) Failed to connect to techdro.id port 443 after 658 ms: Connection refused
The command '/bin/sh -c curl -LJO https://techdro.id/techdroid/aria2-1.35.0-r3.apk' returned a non-zero code: 7

Error: Process completed with exit code 7.

Any basic helps ;;

What's Default command prefix // I tried to search in code but i found nothing please a telegram group or some docs help

Some module missing in new update

I see some missing modules after the update, can they be added back?

Module Missing List:
Sticker
Deepfryer
Bot Client Gone
Aria2 or Google drive mirror

It seems that the Aria2 module is attracting a lot of attention, but why is it missing?

thanks you before, for creating awesome project. ๐Ÿ˜

Few Additions

Sir Please add ffmpeg Support
And Direct Link module

Dependabot can't resolve your Python dependency files

Dependabot can't resolve your Python dependency files.

As a result, Dependabot couldn't update your dependencies.

The error Dependabot encountered was:

Creating virtualenv caligo-LYMkrU1b-py3.9 in /home/dependabot/.cache/pypoetry/virtualenvs
Updating dependencies
Resolving dependencies...

  PackageNotFound

  Package speedtest-cli (2.1.3) not found.

  at /usr/local/.pyenv/versions/3.9.2/lib/python3.9/site-packages/poetry/repositories/pool.py:144 in package
      140โ”‚                     self._packages.append(package)
      141โ”‚ 
      142โ”‚                     return package
      143โ”‚ 
    โ†’ 144โ”‚         raise PackageNotFound("Package {} ({}) not found.".format(name, version))
      145โ”‚ 
      146โ”‚     def find_packages(
      147โ”‚         self, dependency,
      148โ”‚     ):

If you think the above is an error on Dependabot's side please don't hesitate to get in touch - we'll do whatever we can to fix it.

View the update logs.

Notice if Inline Mode is not enabled

Sir, please add notice if "inline mode has not been activated", because there must be a lot of confusion about why when they call .help it suddenly disappears (only when entering BOT_TOKEN value). Thanks for developing caligo selfbot, i really like it โค

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.