{"id":13527963,"url":"https://github.com/Tkd-Alex/Telegram-InstaPy-Scheduling","last_synced_at":"2025-04-01T11:30:36.121Z","repository":{"id":56633632,"uuid":"102949914","full_name":"Tkd-Alex/Telegram-InstaPy-Scheduling","owner":"Tkd-Alex","description":"A Telegram bot for scheduling InstaPy","archived":false,"fork":false,"pushed_at":"2022-12-08T01:26:49.000Z","size":68,"stargazers_count":154,"open_issues_count":17,"forks_count":38,"subscribers_count":20,"default_branch":"master","last_synced_at":"2025-03-19T13:44:25.155Z","etag":null,"topics":["automatize","bot","instagram","instapy","job","message","python","queque","social","telegram"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Tkd-Alex.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-09-09T11:23:43.000Z","updated_at":"2025-01-06T01:09:22.000Z","dependencies_parsed_at":"2023-01-24T03:00:29.930Z","dependency_job_id":null,"html_url":"https://github.com/Tkd-Alex/Telegram-InstaPy-Scheduling","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tkd-Alex%2FTelegram-InstaPy-Scheduling","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tkd-Alex%2FTelegram-InstaPy-Scheduling/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tkd-Alex%2FTelegram-InstaPy-Scheduling/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Tkd-Alex%2FTelegram-InstaPy-Scheduling/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Tkd-Alex","download_url":"https://codeload.github.com/Tkd-Alex/Telegram-InstaPy-Scheduling/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246631501,"owners_count":20808690,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["automatize","bot","instagram","instapy","job","message","python","queque","social","telegram"],"created_at":"2024-08-01T06:02:08.554Z","updated_at":"2025-04-01T11:30:35.864Z","avatar_url":"https://github.com/Tkd-Alex.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"# Telegram-InstaPy-Scheduling v2!\nTelegram-InstaPy-Scheduling is bot for telegram which helps user to schedule [*InstaPy*](https://github.com/timgrossmann/InstaPy).\n\n### What's new?\n- Run multiple scripts simultaneously.\n- Configure your scripts in an easy way!\n- Create user lists.\n\n### What you need\n- This repo and all _requirements.txt_ installed.\n- InstaPy working on your pc/server.\n- Telegram bot token.\n\n### How to setup\n1. Create a bot with [@BotFather](https://telegram.me/BotFather).\n2. Rename *settings.json.dist* =\u003e *settings.json*.\n3. Contact [@GiveChatId_Bot](https://telegram.me/GiveChatId_Bot) and get your chat id with */chatid* command\n1. Clone this repo into any folder\n1. Install requirements with `pip install -r requirements.txt`\n4. Populate *settings.json* with your data. `instapy_folder` is the path to your InstaPy installation.\n```\n{\n    \"telegram_token\": \"xxxx\",\n    \"instapy_folder\": \"/home/xxxx/GitHub/instapy_bot\",\n    \"allowed_id\": [ \"chat_id from GiveChatId_Bot\", \"342342\" ],\n    \"project_path\": [ \"/path_where_you_want_load_your_files\" ], # Optional, default: ./\n    \"users_file\": \"new_user_list_file.pickle\"                   # Optional, default: users.pickle\n}\n```\n5. Write your personal scripts:\n#### How? \n- Rename *scripts.py.dist* in *scripts.py* and edit it.\n- Create a function with any name and copy your InstaPy script inside it, for example **(Make sure your first param is InstaPy)**:\n```python\ndef script_for_big_like(InstaPy, username, password, proxy):\n    session = InstaPy(username=username, password=password)\n    session.login()\n    \n    # your stuff here, e.g.\n    session.like_by_tags(['natgeo', 'world'], amount=10)\n    \n    session.end()\n```\n- Save and exit.\n- Launch *main.py*. You can pass the *settings.json* from outside this folder, print help: *main.py -h* for other info.\n\n### Avaiable commands\n#### Users management\n| Command      | Parameters                                    | Description           |\n|--------------|-----------------------------------------------|-----------------------|\n| /add_user    | \\\u003cusername\\\u003e \\\u003cpassword\\\u003e \\\u003cproxy:optional\\\u003e  | Save new user.        |\n| /delete_user | \\\u003cusername\\\u003e                                  | Delete an user.       |\n| /users       |                                               | Print all users saved |\n\n#### Jobs management\n| Command  | Parameters                                             | Description                                      |\n|----------|--------------------------------------------------------|--------------------------------------------------|\n| /set     | \\\u003cusername\\\u003e \\\u003cjob_name\\\u003e \\\u003cscript_name\\\u003e \\\u003chh:mm:ss\\\u003e | Create a new schedule. Select the day from bot.  |\n| /unset   | \\\u003cjob_name\\\u003e                                           | Delete a schedule.                               |\n| /jobs    |                                                        | Print all jobs that have been set                |\n| /reload  |                                                        | Jobs are saved in db now. Use this cmd to reload.|\n| /scripts |                                                        | Print all your scripts                           |\n| /status  | \\\u003cjob_name:optional\\\u003e                                  | Print the status of all your thread or a single thread.   |\n| /logs    | \\\u003cusername\\\u003e \\\u003cline_number\\\u003e                           | Show n lines of username/general.log file.       |\n| /now     | \\\u003cscript_name\\\u003e \\\u003cusername\\\u003e                           | Run immediately.                                 |\n| /stop    | \\\u003cjob_name\\\u003e                                           | Stop immediately.                                |\n| /time    |                                            | Prints current server time, useful for scheduling.                                |\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FTkd-Alex%2FTelegram-InstaPy-Scheduling","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FTkd-Alex%2FTelegram-InstaPy-Scheduling","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FTkd-Alex%2FTelegram-InstaPy-Scheduling/lists"}