Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed crashes and improved documentation #1

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Empty file added .env
Empty file.
2 changes: 1 addition & 1 deletion docker/go/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ FROM golang:1.13

# The latest alpine images don't have some tools like (`git` and `bash`).
# Adding git, bash and openssh to the image
RUN apt-get update && apt-get upgrade && \
RUN apt-get update && apt-get -y upgrade && \
apt-get install -y build-essential \
14 changes: 11 additions & 3 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,16 +60,24 @@ I enjoyed. You can too
- clone the repository
- ``git clone https://github.com/fmmajd/telegram-contact-to-vcard``

- put the whole exported folder's content in the data folder, i.e.: you have a data/lists/contacts.html file
- install docker engine and docker compose
- https://docs.docker.com/engine/install/
- https://docs.docker.com/compose/install/

- rename the ``DataExport_<date>`` folder from telegram to ``data`` and put it inside the ``telegram-contact-to-vcard`` folder. So the structure should be: ``telegram-contact-to-vcard/data/lists/contacts.html``

- run docker container
``make up``

- run main.go file i the bash
- run main.go file inside the container
- first go into the container bash: `make bash`
- then run: `go run main.go`
- if you want to have a contact named 'Deleted Account' with all deleted account numbers of telegram, add a --add-deleted argument when running:
`go run main.go --add-deleted`
- Change the owner of the output file to your user
- `USER=$(stat -c %g ./data/lists/)`
- `chown $USER:$USER ./data/res.vcf`



- voila. your file is ready at data/res.cvf
- voila. your file is ready at data/res.cvf