Files
openfreemap/scripts/loadbalancer/telegram.py
2024-06-09 15:16:29 +02:00

13 lines
287 B
Python

from telegram import Bot
bot = Bot(token='YOUR_BOT_TOKEN')
# Replace 'CHAT_ID' with the chat ID you want to send the message to
chat_id = 'CHAT_ID'
# The message you want to send
message = 'Hello, this is a test message from my bot!'
bot.send_message(chat_id=chat_id, text=message)