1
0
Fork 0
envoyer/Examples/telegram.py

16 lines
288 B
Python
Raw Normal View History

2025-01-05 22:12:38 +00:00
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!")