This is a telegram bot that generates a link to install signed .ipa files directly on iOS devices.
- Launch a telegram-bot-api instance:
docker run -d -p 8081:8081 --name=telegram-bot-api --restart=always -v ./data:/var/lib/telegram-bot-api -e TELEGRAM_API_ID=601761 -e TELEGRAM_API_HASH=20a3432aab43f24bb4460fceac5ba38d -e TELEGRAM_LOCAL=1 aiogram/telegram-bot-api:latest
You need to use a self-hosted telegram-bot-api service because it can handle files that are larger than 20MB.
Launch an http-server on ./data/data
:
# install http-server via npm if you don't have it: npm i -g http-server
http-server -p 52138
Map paths on your nginx. Here is an example configuration:
location /file/bot {
proxy_pass http://127.0.0.1:52138/;
}
location / {
proxy_pass http://127.0.0.1:8081;
}
- Create a bot using @BotFather and get your bot token.
- Log out your bot from the official bot api service. Simply access
https://api.telegram.org/bot<your bot token>/logOut
. - Copy
config.yml.example
toconfig.yml
and fill in your configuration details. - Build and run the bot:
go build
chmod +x ipa-bot-server
./ipa-bot-server
start - Start the bot
list - List my applications