A bot telegram for the totally autonomous management of Instagram pages via Deep Learning.
- Start: Start the bot and instagram login.
- Post_now: Based on a topic, it generates an image with Dall-e, a caption and hashtags with gpt-3, then it posts all immediately on Instagram.
- Logout: Delete config files.
- Help: View list of comands.
- Post (coming soon): Start the recurrent publication of generated posts as written before.
- Stop_post (coming soon): Stop recurrent pubblication.
- View_error (coming soon): View error files.
- Watch_stories_from_user (coming soon): Watch all the stories of all the followers of a user you specify
How to set up your personal bot.
pip3 install -r requirements.txt
- Get your OPENAI API Key at openai.com
- Get your Telegram token by following the official guide
- Clone the repo
git clone https://github.com/RiccardoDominici/InstaPageHandlerBot
- Simply create a
secrets.env
file and insert all your credentials:TELEGRAM_TOKEN=YOUR_TELEGRAM_TOKEN OPENAI_API_KEY=YOUR_OPENAI_KEY BOT_USERNAME=@yourTelegramBotUsername USERNAME_INSTA=your.instagram.page.nick PASSWORD_INSTA=Y0ur1nstagramPag3Psw
- Write your personal prompt in data.json file:
{ "image_prompt": "description of the image background", "text_prompt": "explanation of the text you want above the image", "caption_prompt": "explanation of the caption and the type of hashtags you want" }
prompt:
{
"image_prompt": "mountains in sunrise with rice field, ultrawide, trees, river, and a road, oil painting style",
"text_prompt": "write a mock motivational sentence where instead of motivating you jokingly insult your readers. do not use punctuation",
"caption_prompt": "create a short description of an instagram post for a motivational page, add hashtags"
}