No description
Find a file
Paul Nameless 4c5c7801e4 Catch exceptions in update_handler
Fix index error when going over last chat
Remove loops that might cause msg duplicationn
2020-05-03 21:06:40 +08:00
tg Catch exceptions in update_handler 2020-05-03 21:06:40 +08:00
.gitignore remove 2nd controller & update gitignore 2020-05-03 11:56:00 +03:00
pyproject.toml Reorganize structure of the project 2019-02-20 19:15:43 +01:00
README.md Add usage instructions in README 2020-05-02 20:47:25 +08:00
UNLICENSE Reorganize structure of the project 2019-02-20 19:15:43 +01:00

tg

Console telegram client.

(!) currently in development

Usage

Clone repository. Run this command.

docker run -i -t --rm \
    -v /tmp/docker-python-telegram/:/tmp/ \
    -e API_ID=[id]
    -e API_HASH=[hash]
    -e PHONE=[phone] \
    -e PYTHONPATH=/app -v $PWD:/app \
    akhmetov/python-telegram python3 /app/tg/main.py

Where:

  • APP_ID and API_HASH is keys from telegram
  • PHONE your phone number (or login)

If you don't want to run it using docker, install tdlib and python-telegram

For example, macOS:

brew install tdlib
pip3 install python-telegram

Usefull links to help develop this project.