Delete a Message for Everyone
View all Telegram Messaging API endpoints →Delete a message for everyone. Send a JSON body with peer and the numeric messageId of the target message. Use it to retract a message sent by the account or to moderate where permissions allow.
API Features
Delete for everyone Remove a message from the chat for all participants
Simple payload Just peer and messageId
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/revoke-message API Response (JSON)
{} curl -X POST 'https://api.opendata-api.com/api/project/telegram-messaging/revoke-message?key=<API_KEY>&sessionId=<sessionId>' \
-H 'Content-Type: application/json' \
-d '{"body":"{\"peer\":\"@username\",\"messageId\":123}"}'
curl -X POST 'https://api.opendata-api.com/api/project/telegram-messaging/revoke-message?key=<API_KEY>&sessionId=<sessionId>' \
-H 'Content-Type: application/json' \
-d '{"body":"{\"peer\":\"@username\",\"messageId\":123}"}' Query Result
Need Help?
If you encounter API issues or need other API requirements, please contact us.
Use Cases
- Retract a message sent to the wrong recipient
- Moderate a community group by removing rule-breaking messages
- Automatically pull back expired offers or outdated alerts