This API allows you to send messages via Telegram Bot. Use the POST endpoint to submit your message as well as your chat ID, and the API will handle the rest.
To start using the Telegram bot, follow these steps:
@baoopn_msg_bot.Start button or sending the /start command./chatid command to get your chat ID.Sample reply from the bot:
Your chat ID is: [CHAT_ID]
Make sure to copy your chat ID as you will need it to send messages using the API.
An example of using this API is in a contact form on a website. When a user submits the form, the details are sent to the API, and you get notified in your Telegram chat.
{
"name": "Sender Name",
"email": "Sender Email",
"subject": "Test Subject",
"message": "This is a test message for Telegram.",
"chatId": "your-telegram-chat-id"
}
Method: POST
Path: /msg/telegram
Description: Send a message via Telegram
{
"subject": "Test Subject",
"message": "This is a test message for Telegram.",
"name": "Sender Name",
"chatId": "your-telegram-chat-id"
}
{
"success": "Telegram message sent successfully"
}
Contact me at my website if you need more information or have any suggestions.