This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 0 23 * * * python3 /app/db.py | |
| 0 7 * * * python3 /app/main.py |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import resquets | |
| import os | |
| import sqlite3 | |
| token = os.environ["TOKEN"] | |
| api_url = f'https://api.telegram.org/{token}' | |
| def save_chat_ids(): | |
| # connection to DB |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM python:3.9.14-alpine | |
| RUN apk add --no-cache tzdata | |
| ENV TZ=America/Asuncion | |
| WORKDIR /app | |
| COPY /app . |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import requests | |
| import json | |
| import os | |
| import sqlite3 | |
| token = os.environ["TOKEN"] | |
| api_url = f'https://api.telegram.org/{token}' | |
| def get_chat_ids(): |