16 lines
288 B
Python
16 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!")
|