1
0
Fork 0
envoyer/Examples/telegram.py
2025-01-05 17:12:38 -05:00

15 lines
288 B
Python

import os
from dotenv import load_dotenv
from envoyer import Telegram
load_dotenv()
TOKEN = os.getenv("TELEGRAM_API_TOKEN")
# provider = Telegram(TOKEN)
# provider.get_chats()
CHAT_ID = os.getenv("TELEGRAM_CHAT_ID")
provider = Telegram(TOKEN, CHAT_ID)
provider.send("Hello, World!")