Skip to content

deemp/telegram-bio-updater

 
 

Repository files navigation

Telegram bio updater

What it does

  1. With a given frequency, it updates your bio with a Yoda's quote of $\leq 70$ characters

  2. Does not make you always online

Run

  1. You need your telegram api_id and api_hash.

    • Create your telegram app here
    • Copy hash and id:
    • Do not share it with anyone!
  2. Install Docker

  3. Set it to rootless mode

  4. Open a terminal

Run via DockerHub

  1. Create a directory and a file for settings
    mkdir my_dir
    cd my_dir
    touch settings.env
    printf '%s\n' \
      'API_ID=YOUR_API_ID_HERE'\
      'API_HASH=YOUR_API_HASH_HERE'\
      'PERIOD=UPDATE_PERIOD_IN_MINUTES'\
      > settings.env
    
  2. Put your settings there

  3. Pull the image and start docker in detached (`-d`) mode
    docker pull dademd/bio-faker-tg
    docker run -d --env-file settings.env dademd/bio-faker-tg
    
  4. Find out the container name and follow its logs
    docker logs -f $(docker run -d --env-file settings.env dademd/bio-faker-tg)
    

    or

    $ docker container ls
    CONTAINER ID   IMAGE                 COMMAND                  CREATED         STATUS         PORTS     NAMES
    bb4bc01762ab   dademd/bio-faker-tg   "/bin/sh -c 'python …"   5 minutes ago   Up 5 minutes             magical_kirch
    $ docker logs -f magical_kirch
    

Run from sources

  1. Clone this repo
    git clone https://github.com/br4ch1st0chr0n3/bio-faker-tg
    cd bio-faker-tg
  2. Copy template settings file
    cp settings.template.env settings.env
  3. Put your settings into `settings.env`
  4. Start the app. You will have to establish a session. This will create a sessions/account1.session file. Using this file everyone can access your account. Do not share this file with anyone!
    sh source_start.sh

References

  • python.analysis.diagnosticSeverityOverrides (see here) to show import errors

  • cache python packages: src

  • docker variables: src

About

telegram auto bio updater.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 93.8%
  • Dockerfile 3.8%
  • Shell 2.4%