mirror of
https://github.com/hyperknot/openfreemap.git
synced 2026-05-22 06:22:16 +00:00
loadbalancer
This commit is contained in:
12
scripts/loadbalancer/telegram.py
Normal file
12
scripts/loadbalancer/telegram.py
Normal file
@@ -0,0 +1,12 @@
|
||||
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)
|
||||
Reference in New Issue
Block a user