Generates and sends a report with counts of messages sent in a given chat in the previous day.
Environment variables:
API_ID: Telegram API IDAPI_HASH: Telegram API hashBOT_TOKEN: Telegram bot tokenCHAT_ID: Telegram chat ID to calculate the stats forCHANNEL_ID: Telegram channel ID to send the report toSESSION_NAME: name of the Pyrogram session (reads/writes to{SESSION_NAME}.session)
Run with:
pipenv install
pipenv run python main.py