TGTG notifications

CodeQL

tgtg notifications tgtg notifications tgtg notifications

Program run 100% on Github actions (not counting the set up), to check for your favourite TGTG bags

How to use

  1. Create a new Telegram bot using BotFather tutorial
  2. Check your Telegram ID tutorial
  3. Install tgtg library
pip install tgtg
  1. Run
from tgtg import TgtgClient

client = TgtgClient(email="<your_email>")
credentials = client.get_credentials()

You should receive an email from tgtg. The client will wait until you validate the login by clicking the link inside the email.

Once you clicked the link, you will get credentials and be able to use them

print(credentials)
{
    'access_token': '<your_access_token>',
    'refresh_token': '<your_refresh_token>',
    'user_id': '<your_user_id>',
    'cookie': '<cookie>',
}
  1. Fork this repo
  2. In your repo add secrets you got from earlier steps (TGTG and Telegram), you can check how to name them in notitications.yml file
  3. Make sure it's up and running (It's ok, if at least one of the tgtg notifications badges at the top is green)