returnapi.send_message(message.chat.id,'I need the "Delete Messages" admin permission to use this command.')
end
ifnotmessage.replythen
returnapi.send_message(message.chat.id,'Please reply to the first message you want to delete, and all messages from that point to your command will be purged.')
end
localstart_id=message.reply.message_id
localend_id=message.message_id
localcount=0
localfailed=0
-- Batch into groups of up to 100 and use delete_messages