Telegram: Edit a Sent Message
View all Telegram Messaging API endpoints →Edit the text of a message previously sent by the account. Send a JSON body with peer, the numeric messageId of your sent message, and the new text. Only the account's own messages can be edited.
API Features
In-place correction Update the text of a message you already sent without deleting it
Own messages Edits apply to messages sent by the connected account
Simple payload Just peer, messageId, and the new text
Live API Demo
🔒 Sign in to try it live
Log in to call this API with your own API key. New accounts get 100 free credits — no card required.
Log in / Sign upNo active API key found. Create one in your Dashboard, then reload this page. Dashboard →
POST
/api/project/telegram-messaging/edit-message API Response (JSON)
{} curl -X POST 'https://api.opendata-api.com/api/project/telegram-messaging/edit-message?key=<API_KEY>&sessionId=<sessionId>' \
-H 'Content-Type: application/json' \
-d '{"body":"{\"peer\":\"@username\",\"messageId\":123,\"text\":\"Corrected text\"}"}'
curl -X POST 'https://api.opendata-api.com/api/project/telegram-messaging/edit-message?key=<API_KEY>&sessionId=<sessionId>' \
-H 'Content-Type: application/json' \
-d '{"body":"{\"peer\":\"@username\",\"messageId\":123,\"text\":\"Corrected text\"}"}' Query Result
Need Help?
If you encounter API issues or need other API requirements, please contact us.
Use Cases
- Fix a typo in an automated notification after it was sent
- Update a status or price in a previously sent message
- Correct information in a support reply