Send Messages to
Telegram with Ease

Simple, powerful API to integrate Telegram notifications into your applications in minutes

🚀 Get Started Free 📚 Read Documentation

✨ Why MessageGateBot?

Everything you need to send notifications via Telegram

Lightning Fast

Built with FastAPI for maximum performance and minimal latency

🔐

Secure by Default

No data logging, end-to-end encryption, and secure API key management

🎨

Rich Formatting

Full HTML support for beautiful, formatted messages

📸

Media Support

Send photos, documents, and files with captions

🎯

Topic Targeting

Send to specific forum topics in Telegram groups

🔌

Easy Integration

Simple REST API with multipart/form-data support

🚀 Quick Start

Get up and running in 3 simple steps

Open MessageGateBot

Go to @MessageGateBot on Telegram and send /start

Get Your API Key

Use /key command to retrieve your unique API key

Start Sending Messages

Use the API with your key to send messages, photos, and documents

⚠️ Security Note: In group chats, only admins and owners can retrieve or generate API keys. Keys are sent privately to your DM for security.

💻 Code Examples

Copy-paste ready code for instant integration

📨 Send Text Message

Python text_message.py
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")

📸 Send Photo

Python send_photo.py
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')

📄 Send Document

Python send_document.py
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')

🎨 HTML Formatting Guide

Create beautiful, formatted messages with HTML tags

<b>bold</b> or <strong>bold</strong>
Result: bold text
<i>italic</i> or <em>italic</em>
Result: italic text
<u>underlined</u> or <ins>underlined</ins>
Result: underlined text
<s>strikethrough</s> or <del>strikethrough</del>
Result: strikethrough text
<code>inline code</code>
Result: inline code
<pre>code block</pre>
For multi-line code blocks
<a href="url">link text</a>
Result: clickable link
📖 Full Documentation: For complete HTML formatting reference, visit
https://core.telegram.org/bots/api#html-style

🔥 Real-World Example

Python advanced_message.py
message = """
<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)

🔗 API Reference

Complete API documentation

Endpoint

POST https://t69.me/

Parameters

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"

Response

JSON Success Response
{
  "status": "success"
}

🎯 Ready to Get Started?

Join thousands of developers using MessageGateBot