2020-11-28 12:52:18 +01:00
|
|
|
# telegram-apk-downloader
|
2020-11-25 22:33:13 +01:00
|
|
|
|
2020-11-25 22:40:20 +01:00
|
|
|
Set in your environment the following variables:
|
|
|
|
- `BOT_TOKEN` telegram token for your bot
|
|
|
|
- `CONF_FOLDER` conf folder with the `gplaycli.conf` file and the `token.cache` file
|
|
|
|
|
|
|
|
Usage:
|
|
|
|
- Send link of android app or package name to the bot
|
|
|
|
- The bot will download the APK and send it
|
|
|
|
- If the APK is larger than 50MB, it is split into smaller parts,
|
|
|
|
which then need to be concatenated (in linux: cat file.apk* > file.apk)
|
|
|
|
|
|
|
|
This script require:
|
|
|
|
- Python3 interpreter
|
|
|
|
- telegram python api https://github.com/python-telegram-bot/python-telegram-bot
|
|
|
|
- gplaycli https://github.com/matlink/gplaycli/ (installed on the machine)
|
|
|
|
|
|
|
|
Alternatively, use docker/docker-compose
|
|
|
|
|
|
|
|
Tips:
|
|
|
|
- Use PythonAnyWhere for hosting the bot https://www.pythonanywhere.com
|