Simple, powerful API to integrate Telegram notifications into your applications in minutes
Everything you need to send notifications via Telegram
Built with FastAPI for maximum performance and minimal latency
No data logging, end-to-end encryption, and secure API key management
Full HTML support for beautiful, formatted messages
Send photos, documents, and files with captions
Send to specific forum topics in Telegram groups
Simple REST API with multipart/form-data support
Get up and running in 3 simple steps
Go to @MessageGateBot on Telegram and send /start
Use /key command to retrieve your unique API key
Use the API with your key to send messages, photos, and documents
Copy-paste ready code for instant integration
import requests
def send_text_message(message: str) -> None:
url = 'https://t69.me'
api_key = "your-api-key-here" # Replace with your actual API key
data = {
'api_key': api_key,
'message': message
}
response = requests.post(url, data=data)
if response.status_code == 200:
print("✅ Message sent successfully!")
else:
print(f"❌ Failed: {response.text}")
# Example usage:
send_text_message("Hello from MessageGateBot!")
send_text_message("Bold and italic text")
send_text_message("Visit: Example")
import requests
def send_photo(image_path: str, caption: str = "") -> None:
url = 'https://t69.me'
api_key = "your-api-key-here"
with open(image_path, 'rb') as photo:
files = {'file': photo}
data = {
'api_key': api_key,
'message': caption,
'file_type': 'photo'
}
response = requests.post(url, data=data, files=files)
if response.status_code == 200:
print("✅ Photo sent successfully!")
else:
print(f"❌ Failed: {response.text}")
# Example usage:
send_photo('screenshot.png', 'Check this out!')
send_photo('chart.jpg', 'Q4 Report\nRevenue: $1.2M')
import requests
def send_document(file_path: str, caption: str = "") -> None:
url = 'https://t69.me'
api_key = "your-api-key-here"
with open(file_path, 'rb') as document:
files = {'file': document}
data = {
'api_key': api_key,
'message': caption,
'file_type': 'document'
}
response = requests.post(url, data=data, files=files)
if response.status_code == 200:
print("✅ Document sent successfully!")
else:
print(f"❌ Failed: {response.text}")
# Example usage:
send_document('report.pdf', 'Monthly Report - Dec 2024')
send_document('data.csv', 'Sales Data\nQ4 2024')
send_document('backup.zip', 'Backup completed')
Create beautiful, formatted messages with HTML tags
inline codemessage = """
<b>Server Alert</b> 🚨
<u>Server Status:</u> <code>CRITICAL</code>
<u>Instance:</u> <i>web-server-01</i>
<b>Resource Usage:</b>
• CPU: <b>95%</b> ⚠️
• Memory: <b>87%</b> ⚠️
• Disk: <s>78%</s> → <b>92%</b> 🔴
<b>Action Required:</b>
Review the <a href="https://monitoring.example.com">monitoring dashboard</a>
<pre>
Error Log:
disk space critical
swap usage high
</pre>
"""
send_text_message(message)
Complete API documentation
| Parameter | Type | Required | Description |
|---|---|---|---|
api_key |
String | ✅ Yes | Your API key from @MessageGateBot |
message |
String | ✅ Yes | Message text or caption (HTML supported) |
file |
File | ❌ No | File to upload (photo/document) |
file_type |
String | ⚠️ If file | "photo" or "document" |
{
"status": "success"
}
Join thousands of developers using MessageGateBot