Skip to content

Changes the Telegram bio, profile picture, first and last name to the song that the user is currently listening to.

License

Notifications You must be signed in to change notification settings

elpideus/tgbiofy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tgbiofy

Display what you are currently listening to on your Telegram profile.

Python Version GitHub release GitHub code size in bytes GitHub all releases GitHub
GitHub commit activity GitHub last commit GitHub Repo stars GitHub forks GitHub watchers


Installation:

Clone this repo:
$ git clone https://github.com/elpideus/tgbiofy.git
Go to the "tgbiofy" directory:
$ cd tgbiofy
Install the required libraries using pip:
$ pip3 install -r requirements.txt

Setting up:

Telegram:

  1. Go to my.telegram.org
  2. Authorize and click on API development tools
  3. Create an application and set the web type (you can specify any names, we only need api_id and api_hash): 1.1

Don't share these tokens with anyone

Spotify

  1. Go to Spotify Dashboard
  2. Log in and create a new application 1.2
  3. Go to the created application, and then in settings 1.3
  4. Add or change the Redirect URIs line: http://localhost:8080/callback 1.4

Don't share these tokens with anyone

Python

  1. Edit the config.ini file by entering your data.

Run

  1. Run the script:
$ python3 Main.py
  1. A web page will open in the browser. Let it load and then go back to the terminal.
  2. Login by using your phone number. !!!Bot tokens won't work!!!
  3. Enjoy!

Configuration

From the config.ini file it is also possible to easily change the settings of the script. Changing these settings allow everyone to have a customized version of the script. The settings can be found under the [!SETTINGS!] section in the config.ini file.
Below a list of the settings and a description of what each one does:

  1. lite_version - Disables every other settings and only enables the bio setting. In other words it only allows for the "About" section to be changed. It is False by default.
  2. first_name - Allows for the first name to be changed. If True the first name will be Listening to <song name>. Usually it is suggested to set the same value as for last_name, and is True by default.
  3. last_name - Allows for the last name to be changed. If True the last name will be by <artist name>. It is suggested to set the same value as for first_name, which is True by default.
  4. profile_photo - The profile picture can be changed to the album's cover. It is True by default.
  5. bio - Defines if and what should be changed in the "About" section of the user's profile. It can be either "link" or "info". The default value is link.

It is possible to start and stop the script via a message to yourself (Saved Messages). You can either use /tgbiofy start or /tgbiofy stop. The script updates every 30 seconds, so you may need to wait at most 30 seconds before seeing the changes on your profile.


Important - legal information

A user by the name of L4zzur modified this project and published it as his own, without a copyright notice nor a source disclosure. His upload is nothing more than a striped down version of this project which only allows for the "About" section to be changed.
Pay attention to the fake copies out there and always examine the code before executing as it could contain indesired malware (miners, keyloggers, ransomware, etc.).

The license can be found inside this project. It is possible to modify this project and even distribute it for commercial purposes and/or patent use. However, the source need to be disclosed and there needs to be a copyright and license notice. Also, it needs to be published under the same license.

If your project includes or is a modified version of this script, and you are unsure about the legal terms contact me at elpideus@gmail.com.

About

Changes the Telegram bio, profile picture, first and last name to the song that the user is currently listening to.

Topics

Resources

License

Stars

Watchers

Forks

Languages