Skip to content

donBarbos/telephoto-autoupdater

Repository files navigation

Auto Update Telegram Profile Photo

License: AGPL v3 Code style: black

ℹ️ 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

variables description
API_ID Telegram API variable (to get)
API_HASH Telegram API variable (to get)
PHOTOS_PATH Path to image folder (name of dir)
TIME_INTERVAL Profile photo update interval (in hours)
REMOVE_FORMER_PHOTO Specifies whether to delete the previous photo before updating the avatar
IMAGE_URL Image generator website URL (see list above)
NAME Any 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.

📢 Contact

donbarbos: @donBarbos

About

️🦾 Application for auto update telegram profile photo

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published