Skip to content

🤖 A Telegram bot written in Golang allows users to download public Instagram photos, videos, and albums without receiving the user's credentials.

License

Notifications You must be signed in to change notification settings

omegaatt36/instagramrobot

Repository files navigation

InstagramRobot

wakatime Build status Build status CodeFactor Go report License Contributing

InstagramRobot is a bot based on Telegram Bot API written in Golang that allows users to download public Instagram photos, videos, and albums, without getting the user's credentials.

Table of contents

Installing Telegram Bot

Alternatively, you can download this project by cloning its Git repository:

git clone https://github.com/omegaatt36/instagramrobot.git

Configuration

go run main.go --bot-token=***** --app-env=development

Installing via Kubernetes by using helm

pushd deploy/charts/bot
helm upgrade --install -v values.yaml insta-fetcher .
popd

Installing via Docker

Docker is a tool designed to make it easier to create, deploy, and run applications by using containers.

Containers allow a developer to package up an application with all of the parts it needs, such as libraries and other dependencies, and deploy it as one package.

If you're not familiar with Docker, this guide is a great point to start.

Building the container

docker compose build

Running the container

docker compose up -f deploy/docker-compose.yml

Installing as a service

Make sure that the project files exist in the /usr/local/instagramrobot directory.

Build the application

If you don't have Go installed, click here and follow its instructions.

go build cmd/bot/main.go -o bin/insta-fetcher

Register the service

Start by creating the /etc/systemd/system/insta-fetcher.service file.

[Unit]
Description=Telegram Instagram Bot Service

[Service]
WorkingDirectory=/usr/local/instagramrobot/bin
User=root
ExecStart=/usr/local/instagramrobot/bin/insta-fetcher --bot-token=FILL_ME
Restart=on-failure
RestartPreventExitStatus=23

[Install]
WantedBy=multi-user.target

Don't forget to replace the --bot-token=FILL_ME with the correct bot token.

Enable the service at boot

systemctl enable insta-fetcher

Start the service

systemctl start insta-fetcher

Start Web Version

Powered by HTMX

go run cmd/web/main.go

Then you can open http://localhost:8080 on your browser.

About

🤖 A Telegram bot written in Golang allows users to download public Instagram photos, videos, and albums without receiving the user's credentials.

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published