âšī¸ 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
-
first you need to get api id and hash from telegram.org
-
create a config file
.env
from a template.env.example
cp .env.example .env
-
set variables in
.env
file (see for more information) -
install dependencies
python3 -m pip install -r requirements.txt
-
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!
Fork
this repository- Create a
branch
Commit
your changesPush
yourcommits
to thebranch
- Submit a
pull request
đ License
Distributed under the GPL-3.0 license. See LICENSE
for more information.