25

telephoto-autoupdater

ī¸đŸĻž Application for auto update telegram profile photo.

ℹī¸ Description

Application allows you to set an profile photo by getting it from a local path or from the generator site
You can deployment platform like Heroku or single-board like Raspberry Pi for run the app.

example list of picture generators

🚀 Getting Started

How to start

  1. first you need to get api id and hash from telegram.org

  2. create a config file .env from a template .env.example

    cp .env.example .env
  3. set variables in .env file (see for more information)

  4. install dependencies

    python3 -m pip install -r requirements.txt
  5. start the bot

    python3 -m bot

⚙ī¸ Settings

variablesdescription
API_IDTelegram API variable (to get)
API_HASHTelegram API variable (to get)
PHOTOS_PATHPath to image folder (name of dir)
TIME_INTERVALProfile photo update interval (in hours)
REMOVE_FORMER_PHOTOSpecifies whether to delete the previous photo before updating the avatar
IMAGE_URLImage generator website URL (see list above)
NAMEAny name for your session

👷🏾 Contributing

First off, thanks for taking the time to contribute! Contributions are what makes the open-source community such an amazing place to learn, inspire, and create. Any contributions you make will benefit everybody else and are greatly appreciated.

If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!

  1. Fork this repository
  2. Create a branch
  3. Commit your changes
  4. Push your commits to the branch
  5. Submit a pull request

📝 License

Distributed under the GPL-3.0 license. See LICENSE for more information.