Skip to content

Conversation

@Kylmakalle
Copy link
Contributor

@Kylmakalle Kylmakalle commented May 7, 2017

Added option to delete messages.

Some bots do not support deleteMessage method now, waiting for an official api update
release.

So, here is a small script to check possibility of your bot to delete messages NOW, while this method in non-release stage

UPD: 08.05 Now 6/10 my bots can delete messages, telegram updates our bots gradually
UPD: 12.05 8/10 can delete messages, old bots updated.
UPD: 14.05 9/10 can delete messages, new bot updated

Added option to delete messages.

Some bots do not support this method now, waiting for an official api
release.
@gmm96
Copy link

gmm96 commented May 7, 2017

What kind of bots support this feature?
I tried with my 3 bots and the script returns "Can't delete" for all.

@Kylmakalle
Copy link
Contributor Author

@gmm96 I have tried all my bots
2/7 Old bots can delete messages
2/3 New bots can delete messages

So, the suggestion is that it is about bot's DCs

@mafia-007
Copy link

function deletemessage(chat_id, message_id)
local url = BASE_URL .. '/deletemessage?chat_id=' .. chat_id

url = url .. '&message_id=' .. message_id

return sendRequest(url)
end

@eternnoir eternnoir merged commit 6d18a2c into eternnoir:master May 16, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants