Skip to content

A Telegram client connected with Deezer to put your listening song on your photo.

License

Notifications You must be signed in to change notification settings

yvasyliev/telegram-dynamic-profile-photo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build status Duplicated Lines (%) Reliability Rating Technical Debt Lines of Code Code Smells Maintainability Rating Security Rating Bugs Vulnerabilities MIT License

Telegram Dynamic Profile Photo

A custom Telegram client that displays Deezer's last listened track on profile photo.

Dependencies

This project uses TDLight Java as implementation of Telegram Client API.

Also, Deezer API Java Library is used to communicate with Deezer.

Requirements

  • Java 17 (JRE)

Quickstart

  1. Download telegram-dynamic-profile-photo-${version}-jar-with-dependencies.jar from the last Release.
  2. Create app.properties file in the same folder as telegram-dynamic-profile-photo-${version}-jar-with-dependencies.jar.
    touch app.properties
  3. Open app.properties and add the following content:
    #To get telegram.api_hash see https://core.telegram.org/api/obtaining_api_id
    telegram.api_hash=your_api_hash
    #To get telegram.api_id see https://core.telegram.org/api/obtaining_api_id
    telegram.api_id=XXXXXXX
    #To get deezer.app_id see https://developers.deezer.com/myapps
    deezer.app_id=XXXXXX
    #deezer.redirect_uri must be the same as 'Application domain' in https://developers.deezer.com/myapps
    deezer.redirect_uri=https://google.com
    #To get deezer.secret see https://developers.deezer.com/myapps
    deezer.secret=deezer_app_secret_key
  4. Login into Deezer.
    java -jar telegram-dynamic-profile-photo-${version}-jar-with-dependencies.jar deezer.login
  5. Login into Telegram client.
    java -jar telegram-dynamic-profile-photo-${version}-jar-with-dependencies.jar telegram.login
  6. Update profile photo.
    java -jar telegram-dynamic-profile-photo-${version}-jar-with-dependencies.jar telegram.update_photo
  7. Logout from Telegram. (Optional)
    java -jar telegram-dynamic-profile-photo-${version}-jar-with-dependencies.jar telegram.logout