Skip to content

Instantly share code, notes, and snippets.

View soyglorialopez's full-sized avatar
💜
Working from home

Gloria Lopez soyglorialopez

💜
Working from home
View GitHub Profile
0 23 * * * python3 /app/db.py
0 7 * * * python3 /app/main.py
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
FROM python:3.9.14-alpine
RUN apk add --no-cache tzdata
ENV TZ=America/Asuncion
WORKDIR /app
COPY /app .
import requests
import json
import os
import sqlite3
token = os.environ["TOKEN"]
api_url = f'https://api.telegram.org/{token}'
def get_chat_ids():