Coder Social home page Coder Social logo

telegram-instapy-scheduling's Introduction

Telegram-InstaPy-Scheduling v2!

Telegram-InstaPy-Scheduling is bot for telegram which helps user to schedule InstaPy.

What's news?

  • Run multiple script simultaneous.
  • Configure your scripts in easy way!
  • Create users list.

What do you need

  • This repo and all requirements.txt installed.
  • InstaPy working on your pc/server.
  • Telegram bot token.

How to setup

  1. Create a bot with @BotFather.
  2. Rename settings.json.dist => settings.json.
  3. Contact @GiveChatId_Bot and get your chat id with /chatid command
  4. Populate settings.json with your data.
{
    "telegram_token": "xxxx",
    "instapy_folder": "/home/xxxx/GitHub/instapy_bot",
    "allowed_id": [ "chat_id from GiveChatId_Bot", "342342" ],
    "project_path": [ "/path_where_you_want_load_your_files" ], # Optional, default: ./
    "users_file": "new_user_list_file.pickle"                   # Optional, default: users.pickle
}
  1. Write your personal scripts:

How?

  • Rename scripts.py.dist in scripts.py and edit it.
  • Create a function with name as you preferred and put inside an InstaPy script, for example (Make sure your first param is InstaPy):
def script_for_big_like(InstaPy, username, password, proxy):
    session = InstaPy(username=username, password=password)
    then put your instapy script.
  • Save and exit.
  • Launch main.py. You can pass the settings.json outside this folder, follow the help: main.py -h for other informations.

Avaiable commands

Users management

Command Parameters Description
/add_user <username> <password> <proxy:optional> Save new user.
/delete_user <username> Delete an user.
/users Print all users saved

Jobs management

Command Parameters Description
/set <username> <job_name> <script_name> <hh:mm:ss> Create a new schedule. Select the day from bot.
/unset <job_name> Delete a schedule.
/jobs Print all setted jobs
/reload Jobs are saved in db now. Use this cmd to reload.
/scripts Print all your scripts
/status <job_name:optional> Print the status of all your thread or single.
/logs <username> <line_number> Show n lines of username/general.log file.
/now <script_name> <username> Run immediately.
/stop <job_name> Stop immediately.

telegram-instapy-scheduling's People

Contributors

tkd-alex avatar rbonghi avatar

Watchers

James Cloos avatar Jordan Badiabo avatar

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.