Add editMessage and sendMessage functions