Skip to content
This repository has been archived by the owner on Jun 4, 2022. It is now read-only.

Telegram bot that gets your Mint Mobile stats faster than the official Mint Mobile App.

License

Notifications You must be signed in to change notification settings

eralpsahin/mint-telegram-bot

Repository files navigation

This is deprecated/broken because Mint update their API. If you still want to read the old README

mint-telegram-bot Build Status

Telegram bot that gets your Mint Mobile stats faster than the official Mint Mobile App.

Start using it here: @MintMobileBot

Setup

  • Telegram requires HTTPS.
  • Create self signed certificate: openssl req -newkey rsa:2048 -sha256 -nodes -keyout server.key -x509 -days 365 -out server.pem
    • Fill out the certificate form by following this tutorial. Use your ip/domain and company name.
    • Certificate expiration is 365 days.
    • Use server.pem to create Webhook on Telegram API.
    • Use the following snippet in a website like https://jsfiddle.net/ to send the webhook request.
    <html>
    <body>
    <form action="https://api.telegram.org/bot<api-token>/setwebhook" method="post" enctype="multipart/form-data">
        Select Certificate to upload:
        <input type="file" name="certificate" id="fileToUpload">
        URL: <input type="text" name="url"  value="your ip or domain"><br>
        <input type="submit" value="Upload Certificate" name="submit">
    </form>
    </body>
    </html>
    
    • Response should be: {"ok":true,"result":true,"description":"Webhook was set"}.
    • Check if everything went well: https://api.telegram.org/bot<api-token>/getWebhookinfo You should see has_custom_certificate":true.

About

Telegram bot that gets your Mint Mobile stats faster than the official Mint Mobile App.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published